[NumPy-Tickets] [NumPy] #1967: Buffer test error on python 3.
NumPy Trac
numpy-tickets@scipy....
Sun Oct 23 14:46:32 CDT 2011
#1967: Buffer test error on python 3.
-----------------------------+----------------------------------------------
Reporter: charris | Owner: pv
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version: devel
Keywords: buffer, python3 |
-----------------------------+----------------------------------------------
Description changed by charris:
Old description:
> ERROR: test_multiarray.TestFromBuffer.test_empty('', array([],
> dtype=float64), {})
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3.2/site-packages/nose/case.py", line 198, in
> runTest
> self.test(*self.arg)
> File "/home/charris/.local/lib/python3.2/site-
> packages/numpy/core/tests/test_multiarray.py", line 1446, in tst_basic
> assert_array_equal(np.frombuffer(buffer,**kwargs),expected)
> AttributeError: 'str' object has no attribute '__buffer__'
New description:
{{{
ERROR: test_multiarray.TestFromBuffer.test_empty('', array([],
dtype=float64), {})
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.2/site-packages/nose/case.py", line 198, in
runTest
self.test(*self.arg)
File "/home/charris/.local/lib/python3.2/site-
packages/numpy/core/tests/test_multiarray.py", line 1446, in tst_basic
assert_array_equal(np.frombuffer(buffer,**kwargs),expected)
AttributeError: 'str' object has no attribute '__buffer__'
}}}
--
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1967#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list