diff options
Diffstat (limited to 'numpy/lib/tests/test_utils.py')
-rw-r--r-- | numpy/lib/tests/test_utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/lib/tests/test_utils.py b/numpy/lib/tests/test_utils.py index 6a09c6dbd..80f90f04b 100644 --- a/numpy/lib/tests/test_utils.py +++ b/numpy/lib/tests/test_utils.py @@ -9,7 +9,7 @@ def test_lookfor(): utils.lookfor('eigenvalue', module='numpy', output=out, import_modules=False) out = out.getvalue() - assert 'numpy.linalg.eig' in out + assert_('numpy.linalg.eig' in out) @deprecate @@ -25,14 +25,14 @@ def old_func3(self, x): new_func3 = deprecate(old_func3, old_name="old_func3", new_name="new_func3") def test_deprecate_decorator(): - assert 'deprecated' in old_func.__doc__ + assert_('deprecated' in old_func.__doc__) def test_deprecate_decorator_message(): - assert 'Rather use new_func2' in old_func2.__doc__ + assert_('Rather use new_func2' in old_func2.__doc__) def test_deprecate_fn(): - assert 'old_func3' in new_func3.__doc__ - assert 'new_func3' in new_func3.__doc__ + assert_('old_func3' in new_func3.__doc__) + assert_('new_func3' in new_func3.__doc__) if __name__ == "__main__": run_module_suite() |