[Numpy-discussion] numpy.test() errors
Neil Muller
drnlmuller+scipy at gmail.com
Tue Nov 23 16:56:07 EST 2010
On 23 November 2010 23:44, Pauli Virtanen <pav at iki.fi> wrote:
> On Tue, 23 Nov 2010 23:24:25 +0200, Stéfan van der Walt wrote:
> There's this on Python 3.2:
>
> ======================================================================
> ERROR: test_io.test_gzip_load
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/var/lib/buildslave/numpy-real/b15/../../local3/nose/case.py", line 177, in runTest
> self.test(*self.arg)
> File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/tests/test_io.py", line 1255, in test_gzip_load
> assert_array_equal(np.load(f), a)
> File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/npyio.py", line 332, in load
> fid = seek_gzip_factory(file)
> File "/var/lib/buildslave/numpy-real/b15/numpy-install-3.2/lib/python3.2/site-packages/numpy/lib/npyio.py", line 73, in seek_gzip_factory
> f = GzipFile(fileobj=f.fileobj, filename=name)
> File "/usr/local/stow/python-3.2a4/lib/python3.2/gzip.py", line 162, in __init__
> if hasattr(fileobj, 'mode'): mode = fileobj.mode
> File "/usr/local/stow/python-3.2a4/lib/python3.2/gzip.py", line 101, in __getattr__
> return getattr(name, self.file)
> TypeError: getattr(): attribute name must be string
This was filed and fixed during the python bug weekend
(http://bugs.python.org/issue10465), so it shouldn't be a problem with
a current 3.2 checkout.
--
Neil Muller
drnlmuller at gmail.com
I've got a gmail account. Why haven't I become cool?
More information about the NumPy-Discussion
mailing list