2016-04-01 19:49:55 +00:00
|
|
|
--- 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
|
2016-07-23 17:00:52 +00:00
|
|
|
+++ sympy/plotting/tests/test_plot.py 2016-07-23 11:00:00.754136915 -0600
|
|
|
|
@@ -243,10 +243,6 @@ def plot_and_save(name):
|
|
|
|
p = plot(i, (y, 1, 5))
|
2016-04-01 19:49:55 +00:00
|
|
|
p.save(tmp_file('%s_advanced_integral' % name))
|
|
|
|
p._backend.close()
|
2016-07-23 17:00:52 +00:00
|
|
|
- # Make sure no other warnings were raised
|
2016-04-01 19:49:55 +00:00
|
|
|
- assert len(w) == 1
|
|
|
|
- assert issubclass(w[-1].category, UserWarning)
|
2016-07-23 17:00:52 +00:00
|
|
|
- assert "The evaluation of the expression is problematic" in str(w[0].message)
|
2016-04-01 19:49:55 +00:00
|
|
|
|
|
|
|
s = Sum(1/x**y, (x, 1, oo))
|
2016-07-23 17:00:52 +00:00
|
|
|
p = plot(s, (y, 2, 10))
|