[Numpy-svn] r5409 - trunk/numpy/lib/tests

numpy-svn@scip... numpy-svn@scip...
Sun Jul 13 19:29:19 CDT 2008


Author: alan.mcintyre
Date: 2008-07-13 19:29:17 -0500 (Sun, 13 Jul 2008)
New Revision: 5409

Modified:
   trunk/numpy/lib/tests/test_stride_tricks.py
Log:
Make use of assert_raises from numpy.testing, and added run_module_suite to support 
running test module stand-alone.


Modified: trunk/numpy/lib/tests/test_stride_tricks.py
===================================================================
--- trunk/numpy/lib/tests/test_stride_tricks.py	2008-07-14 00:27:38 UTC (rev 5408)
+++ trunk/numpy/lib/tests/test_stride_tricks.py	2008-07-14 00:29:17 UTC (rev 5409)
@@ -1,7 +1,5 @@
-from nose.tools import assert_raises
 import numpy as np
-from numpy.testing import assert_array_equal
-
+from numpy.testing import *
 from numpy.lib.stride_tricks import broadcast_arrays
 
 
@@ -204,3 +202,7 @@
         if () not in input_shapes:
             yield assert_same_as_ufunc, input_shapes[0], input_shapes[1], False, True
             yield assert_same_as_ufunc, input_shapes[0], input_shapes[1], True, True
+
+
+if __name__ == "__main__":
+    run_module_suite()



More information about the Numpy-svn mailing list