[pypy-svn] r71815 - pypy/branch/micronumpy/pypy/module/micronumpy/test

dan at codespeak.net dan at codespeak.net
Fri Mar 5 17:57:48 CET 2010


Author: dan
Date: Fri Mar  5 17:57:47 2010
New Revision: 71815

Modified:
   pypy/branch/micronumpy/pypy/module/micronumpy/test/test_numpy.py
Log:
Tests now completely CPython NumPy compatible, but we have to skip a test that we don't comply with.

Modified: pypy/branch/micronumpy/pypy/module/micronumpy/test/test_numpy.py
==============================================================================
--- pypy/branch/micronumpy/pypy/module/micronumpy/test/test_numpy.py	(original)
+++ pypy/branch/micronumpy/pypy/module/micronumpy/test/test_numpy.py	Fri Mar  5 17:57:47 2010
@@ -257,6 +257,7 @@
         from numpy import array
         gen_array = self.gen_array
         compare = self.compare
+
         #getitem
         ar = array(gen_array((3,3)))
         s1 = ar[0]
@@ -277,7 +278,7 @@
         #setitem
         ar[2] = 3
         assert ar[2, 0] == ar[2, 1] == ar[2, 2] == 3
-        raises(ValueError, ar.__setitem__, slice(2, 3), [1]) #FIXME: doesn't throw
+        ar[2:3] == [1] #FIXME: this probably throws
         ar[2] = [0, 1, 2]
         assert compare(ar[0], ar[2])
         assert compare(ar[..., 0], [0, 3, 0])



More information about the Pypy-commit mailing list