diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-13 22:06:13 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-13 22:06:13 +0000 |
commit | 13b05eea92552d0d65f49033af5267b84049b2ee (patch) | |
tree | 185f92e02f35352b26f330404500d38f71766530 /numpy/testing/nosetester.py | |
parent | 382db3569b1cccee5b4e813919dced51d8352a97 (diff) | |
download | numpy-13b05eea92552d0d65f49033af5267b84049b2ee.tar.gz |
Replaced utils.raises implementation with the nose function.
Added utils.assert_raises (uses the function from nose).
Wrapped text for test() deprecation warning.
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r-- | numpy/testing/nosetester.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index cb387d7af..ed3548b76 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -294,7 +294,10 @@ class NoseTester(object): # issue a deprecation warning if any of the pre-1.2 arguments to # test are given if old_args.intersection(kwargs.keys()): - warnings.warn("This method's signature will change in the next release; the level, verbosity, all, sys_argv, and testcase_pattern keyword arguments will be removed. Please update your code.", + warnings.warn("This method's signature will change in the next " \ + "release; the level, verbosity, all, sys_argv, " \ + "and testcase_pattern keyword arguments will be " \ + "removed. Please update your code.", DeprecationWarning, stacklevel=2) # Use old arguments if given (where it makes sense) |