Created
March 24, 2015 06:04
-
-
Save pzrq/05a5d1a16c63e7485110 to your computer and use it in GitHub Desktop.
SymPy RuntimeError test.py file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import exit | |
import os | |
os.environ['SYMPY_USE_CACHE'] = 'no' # 'yes', 'no', 'debug' | |
from sympy import * | |
x, y, a, t, x_1, x_2, z, s = symbols('x y a t x_1 x_2 z s') | |
def test_issue_4737(): | |
assert integrate(sin(x)/x, (x, -oo, oo)) == pi | |
assert integrate(sin(x)/x, (x, 0, oo)) == pi/2 | |
if __name__ == '__main__': | |
try: | |
test_issue_4737() | |
except RuntimeError: | |
print('1') | |
exit(1) | |
else: | |
print('0') | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For sympy/sympy#9194