Skip to content

Commit

Permalink
Merge pull request #1000 from vperic/sage_tests
Browse files Browse the repository at this point in the history
external/test_sage: Disable Sage tests under Python 3
  • Loading branch information
vperic committed Feb 2, 2012
2 parents 37e7d78 + 17baadc commit 36b1d6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def run(self):
if not sympy.doctest():
tests_successful = False

if not sys.platform == "win32":
if not (sys.platform == "win32" or sys.version_info[0] == 3):
# run Sage tests; Sage currently doesn't support Windows or Python 3
dev_null = open(os.devnull, 'w')
if subprocess.call("sage -v", shell = True, stdout = dev_null, stderr = dev_null) == 0:
if subprocess.call("sage -python bin/test sympy/external/tests/test_sage.py", shell = True) != 0:
Expand Down
4 changes: 4 additions & 0 deletions sympy/external/tests/test_sage.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
#py.test will not execute any tests now
disabled = True

if sys.version_info[0] == 3:
# Sage does not support Python 3 currently
disabled = True

import sympy

from sympy.utilities.pytest import XFAIL
Expand Down

0 comments on commit 36b1d6a

Please sign in to comment.