diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 21:00:10 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 21:02:29 -0600 |
commit | 966038e30b21e62ab7729527f3f0bba6e18eb805 (patch) | |
tree | 084bd7b40be49614b3770657ceaf1b539adbf964 /numpy/lib/tests/test_shape_base.py | |
parent | 4cb2eb4df95740661d7f1944451d2c1cb3482bcf (diff) | |
download | numpy-966038e30b21e62ab7729527f3f0bba6e18eb805.tar.gz |
STY: Replace assert by assert_ in tests. There remain 124 uses of
assert in non-testing files that should be checked for correctness.
Diffstat (limited to 'numpy/lib/tests/test_shape_base.py')
-rw-r--r-- | numpy/lib/tests/test_shape_base.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/lib/tests/test_shape_base.py b/numpy/lib/tests/test_shape_base.py index 403761e93..9d6cd0551 100644 --- a/numpy/lib/tests/test_shape_base.py +++ b/numpy/lib/tests/test_shape_base.py @@ -30,7 +30,7 @@ class TestArraySplit(TestCase): a = arange(10) try: res = array_split(a,0) - assert(0) # it should have thrown a value error + assert_(0) # it should have thrown a value error except ValueError: pass @@ -149,7 +149,7 @@ class TestSplit(TestCase): a = arange(10) try: res = split(a,3) - assert(0) # should raise an error + assert_(0) # should raise an error except ValueError: pass @@ -189,7 +189,7 @@ class TestHsplit(TestCase): a= array(1) try: hsplit(a,2) - assert(0) + assert_(0) except ValueError: pass @@ -214,7 +214,7 @@ class TestVsplit(TestCase): a= array([1,2,3,4]) try: vsplit(a,2) - assert(0) + assert_(0) except ValueError: pass @@ -234,7 +234,7 @@ class TestDsplit(TestCase): [1,2,3,4]]) try: dsplit(a,2) - assert(0) + assert_(0) except ValueError: pass |