[Numpy-svn] r8058 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Fri Jan 15 13:15:26 CST 2010


Author: oliphant
Date: 2010-01-15 13:15:26 -0600 (Fri, 15 Jan 2010)
New Revision: 8058

Modified:
   trunk/numpy/core/tests/test_multiarray.py
Log:
Fix test related to bug-fix in array creation from a buffer when offset is provided.

Modified: trunk/numpy/core/tests/test_multiarray.py
===================================================================
--- trunk/numpy/core/tests/test_multiarray.py	2010-01-15 19:11:56 UTC (rev 8057)
+++ trunk/numpy/core/tests/test_multiarray.py	2010-01-15 19:15:26 UTC (rev 8058)
@@ -94,9 +94,10 @@
             r.strides = strides=strides*x.itemsize
             return r
         assert_equal(make_array(4, 4, -1), array([4, 3, 2, 1]))
+        assert_equal(make_array(7,3,1), array([3, 4, 5, 6, 7, 8, 9]))
         self.failUnlessRaises(ValueError, make_array, 4, 4, -2)
         self.failUnlessRaises(ValueError, make_array, 4, 2, -1)
-        self.failUnlessRaises(ValueError, make_array, 8, 3, 1)
+        self.failUnlessRaises(RuntimeError, make_array, 8, 3, 1)
         #self.failUnlessRaises(ValueError, make_array, 8, 3, 0)
 
     def test_fill(self):



More information about the Numpy-svn mailing list