diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-14 00:29:17 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-14 00:29:17 +0000 |
commit | 775b05acfc2da1cea3ad1997d81b86c6f2686c5d (patch) | |
tree | 586f6eeb27917d5de26da5bce2286c5439adfc2a /numpy/lib/tests/test_stride_tricks.py | |
parent | e227d01fdd75f2b8d10cefe057ca7847063f769d (diff) | |
download | numpy-775b05acfc2da1cea3ad1997d81b86c6f2686c5d.tar.gz |
Make use of assert_raises from numpy.testing, and added run_module_suite to support
running test module stand-alone.
Diffstat (limited to 'numpy/lib/tests/test_stride_tricks.py')
-rw-r--r-- | numpy/lib/tests/test_stride_tricks.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_stride_tricks.py b/numpy/lib/tests/test_stride_tricks.py index 955a2cbc7..8f0ac52b8 100644 --- a/numpy/lib/tests/test_stride_tricks.py +++ b/numpy/lib/tests/test_stride_tricks.py @@ -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 @@ def test_same_as_ufunc(): 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() |