sympy/sympy-test_args.patch
Zbigniew Jędrzejewski-Szmek 22c87ae39e Work-around for some broken tests
2017-01-18 17:35:44 -05:00

30 lines
1.3 KiB
Diff

--- sympy-sympy-1.0/sympy/plotting/tests/test_plot.py~ 2017-01-12 11:12:16.000000000 -0500
+++ sympy-sympy-1.0/sympy/plotting/tests/test_plot.py 2017-01-13 11:40:18.754194629 -0500
@@ -199,7 +199,7 @@
cos(x) + 0.1*cos(x)*cos(7*x),
0.1*sin(7*x),
(x, 0, 2*pi))
- p[0].line_color = lambda a: sin(4*a)
+ p[0].line_color = lambda a: float(sin(4*a))
p.save(tmp_file('%s_colors_3d_line_arity1' % name))
p[0].line_color = lambda a, b: b
p.save(tmp_file('%s_colors_3d_line_arity2' % name))
@@ -214,7 +214,7 @@
p.save(tmp_file('%s_colors_surface_arity2' % name))
p[0].surface_color = lambda a, b, c: c
p.save(tmp_file('%s_colors_surface_arity3a' % name))
- p[0].surface_color = lambda a, b, c: sqrt((a - 3*pi)**2 + b**2)
+ p[0].surface_color = lambda a, b, c: float(sqrt((a - 3*pi)**2 + b**2))
p.save(tmp_file('%s_colors_surface_arity3b' % name))
p._backend.close()
@@ -224,7 +224,7 @@
p.save(tmp_file('%s_colors_param_surf_arity1' % name))
p[0].surface_color = lambda a, b: a*b
p.save(tmp_file('%s_colors_param_surf_arity2' % name))
- p[0].surface_color = lambda a, b, c: sqrt(a**2 + b**2 + c**2)
+ p[0].surface_color = lambda a, b, c: float(sqrt(a**2 + b**2 + c**2))
p.save(tmp_file('%s_colors_param_surf_arity3' % name))
p._backend.close()