From a9a470c841eeb5f0fb2c2ae9639f6c2833f03d00 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 9 Jun 2013 21:44:06 -0600 Subject: DEP: Deprecate the oldnumeric and numarray modules. The numarray and oldnumeric modules are deprecated. This is a bit tricky as raising a DeprecationWarning on import causes an error when tests are run. To deal with that, a ModuleDeprecationWarning class is added to numpy and NoseTester is modified to ignore that warning during testing. Closes #2905 --- numpy/testing/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 2d8d57c5f..f58997d58 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -26,8 +26,10 @@ __all__ = ['assert_equal', 'assert_almost_equal','assert_approx_equal', 'assert_array_max_ulp', 'assert_warns', 'assert_no_warnings', 'assert_allclose'] + verbose = 0 + def assert_(val, msg='') : """ Assert that works in release mode. -- cgit v1.2.1