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

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Jan 25 21:46:54 CST 2007


Author: rkern
Date: 2007-01-25 21:46:52 -0600 (Thu, 25 Jan 2007)
New Revision: 3519

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Fix the regression test to not use 2.4's sorted function.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2007-01-25 21:57:52 UTC (rev 3518)
+++ trunk/numpy/core/tests/test_regression.py	2007-01-26 03:46:52 UTC (rev 3519)
@@ -586,7 +586,7 @@
         a = N.arange(5).reshape((5,1))
         b = a.copy()
         N.random.shuffle(b)
-        assert_equal(sorted(b),a)
+        assert_equal(N.sort(b, axis=0),a)
 
     def check_refcount_vectorize(self, level=rlevel):
         """Ticket #378"""



More information about the Numpy-svn mailing list