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_io.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_io.py')
-rw-r--r-- | numpy/lib/tests/test_io.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index 4894f8939..8d4c8f179 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -1393,21 +1393,21 @@ def test_npzfile_dict(): z = np.load(s) - assert 'x' in z - assert 'y' in z - assert 'x' in z.keys() - assert 'y' in z.keys() + assert_('x' in z) + assert_('y' in z) + assert_('x' in z.keys()) + assert_('y' in z.keys()) for f, a in z.iteritems(): - assert f in ['x', 'y'] + assert_(f in ['x', 'y']) assert_equal(a.shape, (3, 3)) - assert len(z.items()) == 2 + assert_(len(z.items()) == 2) for f in z: - assert f in ['x', 'y'] + assert_(f in ['x', 'y']) - assert 'x' in list(z.iterkeys()) + assert_('x' in list(z.iterkeys())) if __name__ == "__main__": run_module_suite() |