upiterbarg / mpmath

Automatically exported from code.google.com/p/mpmath
Other
0 stars 0 forks source link

2 test failures #202

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2. import mpmath
3. mpmath.runtests()

What is the expected output? What do you see instead?
    matrix_slices
TEST FAILED!

Traceback (most recent call last):
  File "/data/home/nwagner/local/lib/python2.5/site-packages/mpmath/tests/runtests.py", line 126, in testit
    module.__dict__[f]()
  File "/data/home/nwagner/local/lib/python2.5/site-packages/mpmath/tests/test_matrices.py", line 97, in test_matrix_slices
    V[1:3] = 10
  File "/data/home/nwagner/local/lib/python2.5/site-packages/mpmath/matrices/matrices.py", line 557, in __setitem__
    for index in itertools.product(rows,columns):
AttributeError: 'module' object has no attribute 'product'
ok        0.0575771 s

test_visualization
    axes
TEST FAILED!

Traceback (most recent call last):
  File "/data/home/nwagner/local/lib/python2.5/site-packages/mpmath/tests/runtests.py", line 126, in testit
    module.__dict__[f]()
  File "/data/home/nwagner/local/lib/python2.5/site-packages/mpmath/tests/test_visualization.py", line 20, in test_axes
    fig = pylab.figure()
  File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/pyplot.py", line 270, in figure
    **kwargs)
  File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 81, in new_figure_manager
    canvas = FigureCanvasTkAgg(figure, master=window)
  File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/backends/backend_tkagg.py", line 179, in __init__
    t1,t2,w,h = self.figure.bbox.bounds
  File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/transforms.py", line 360, in _get_bounds
    x0, y0, x1, y1 = self.get_points().flatten()
  File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/transforms.py", line 990, in get_points
    points = self._transform.transform(self._bbox.get_points())
  File "/data/home/nwagner/local/lib/python2.5/site-packages/matplotlib/transforms.py", line 1420, in transform
    return affine_transform(points, mtx)
ValueError: Invalid vertices array.
ok        5.2663391 s

What version of the product are you using? On what operating system?
>>> mpmath.__version__
'0.16'
2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by nils...@googlemail.com on 3 Dec 2010 at 7:42

GoogleCodeExporter commented 9 years ago
For the first error, looks like we need to remove the dependency on 
itertools.product to support Python 2.5.

I'm not sure what's causing the second one. What is the matplotlib version?

Original comment by fredrik....@gmail.com on 5 Dec 2010 at 7:03

GoogleCodeExporter commented 9 years ago
>>> matplotlib.__version__
'1.0.0'

Original comment by nils...@googlemail.com on 5 Dec 2010 at 7:14

GoogleCodeExporter commented 9 years ago
O.k. it works fine with matplotlib r8813 | mdboom | 2010-11-30 18:37:39 +0100 
(Di, 30. Nov 2010) |

Original comment by nils...@googlemail.com on 5 Dec 2010 at 7:25

GoogleCodeExporter commented 9 years ago
First problem should be fixed now; please verify.

Original comment by fredrik....@gmail.com on 5 Jan 2011 at 9:32

GoogleCodeExporter commented 9 years ago
No test failures here. IMHO ticket can be closed.

>>> import mpmath
>>> mpmath.runtests()
mpmath imported from /home/nwagner/local/lib/python2.7/site-packages/mpmath
mpmath backend: python
mpmath mp class: <mpmath.ctx_mp.MPContext object at 0x943b90>
mpmath version: 0.18-svn
Python version: 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC]
...
test_summation
    fprod                     ok        0.0001469 s
    fsum                      ok        0.0012341 s
    nprod                     ok        0.0245900 s
    nsum                      ok        0.1282420 s
    sumem                     ok        0.1670699 s
test_trig
    trig_misc_hard            ok        0.0016930 s
    trig_near_n_pi            ok        0.0036759 s
    trig_near_zero            ok        0.0007091 s
test_visualization
    axes                      ok        5.5386968 s

finished tests in 54.43 seconds

Original comment by nils...@googlemail.com on 14 Mar 2012 at 7:57