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/ma/testutils.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/ma/testutils.py')
-rw-r--r-- | numpy/ma/testutils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/ma/testutils.py b/numpy/ma/testutils.py index 5cfc9f2ab..4fb76b330 100644 --- a/numpy/ma/testutils.py +++ b/numpy/ma/testutils.py @@ -142,6 +142,7 @@ def fail_if_equal(actual, desired, err_msg='',): msg = build_err_msg([actual, desired], err_msg) if not desired != actual: raise AssertionError(msg) + assert_not_equal = fail_if_equal @@ -230,7 +231,7 @@ def assert_array_less(x, y, err_msg='', verbose=True): def assert_mask_equal(m1, m2, err_msg=''): """Asserts the equality of two masks.""" if m1 is nomask: - assert(m2 is nomask) + assert_(m2 is nomask) if m2 is nomask: - assert(m1 is nomask) + assert_(m1 is nomask) assert_array_equal(m1, m2, err_msg=err_msg) |