summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test__iotools.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 21:00:10 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 21:02:29 -0600
commit966038e30b21e62ab7729527f3f0bba6e18eb805 (patch)
tree084bd7b40be49614b3770657ceaf1b539adbf964 /numpy/lib/tests/test__iotools.py
parent4cb2eb4df95740661d7f1944451d2c1cb3482bcf (diff)
downloadnumpy-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__iotools.py')
-rw-r--r--numpy/lib/tests/test__iotools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test__iotools.py b/numpy/lib/tests/test__iotools.py
index 853d06087..a0f1546e2 100644
--- a/numpy/lib/tests/test__iotools.py
+++ b/numpy/lib/tests/test__iotools.py
@@ -125,7 +125,7 @@ class TestNameValidator(TestCase):
"Test validate no names"
namelist = None
validator = NameValidator()
- assert(validator(namelist) is None)
+ assert_(validator(namelist) is None)
assert_equal(validator(namelist, nbfields=3), ['f0', 'f1', 'f2'])
@@ -191,7 +191,7 @@ class TestStringConverter(TestCase):
"Make sure that string-to-object functions are properly recognized"
conv = StringConverter(_bytes_to_date)
assert_equal(conv._mapper[-2][0](0), 0j)
- assert(hasattr(conv, 'default'))
+ assert_(hasattr(conv, 'default'))
#
def test_keep_default(self):
"Make sure we don't lose an explicit default"