sympy/sympy-test.patch

35 lines
1.7 KiB
Diff
Raw Normal View History

--- sympy/plotting/tests/test_plot_implicit.py.orig 2016-03-08 11:35:33.000000000 -0700
+++ sympy/plotting/tests/test_plot_implicit.py 2016-03-26 14:46:10.574521937 -0600
@@ -55,14 +55,12 @@ def plot_implicit_tests(name):
#Test plots which cannot be rendered using the adaptive algorithm
with warnings.catch_warnings(record=True) as w:
plot_and_save(Eq(y, re(cos(x) + I*sin(x))), name=name)
- assert len(w) == 1
- assert issubclass(w[-1].category, UserWarning)
+ assert issubclass(w[0].category, UserWarning)
assert "Adaptive meshing could not be applied" in str(w[0].message)
with warnings.catch_warnings(record=True) as w:
plot_and_save(x**2 - 1, legend='An implicit plot')
- assert len(w) == 1
- assert issubclass(w[-1].category, UserWarning)
+ assert issubclass(w[0].category, UserWarning)
assert 'No labelled objects found' in str(w[0].message)
def test_line_color():
--- sympy/plotting/tests/test_plot.py.orig 2016-03-08 11:35:33.000000000 -0700
+++ sympy/plotting/tests/test_plot.py 2016-07-22 12:23:35.003568600 -0600
@@ -244,8 +244,10 @@ def plot_and_save(name):
p.save(tmp_file('%s_advanced_integral' % name))
p._backend.close()
# Make sure no other warnings were raised
- assert len(w) == 1
- assert issubclass(w[-1].category, UserWarning)
+ assert len(w) == 3
+ assert issubclass(w[0].category, UserWarning)
+ assert issubclass(w[1].category, UserWarning)
+ assert issubclass(w[2].category, DeprecationWarning)
assert "The evaluation of the expression is problematic" in str(w[0].message)
s = Sum(1/x**y, (x, 1, oo))