summaryrefslogtreecommitdiff
path: root/numpy/testing/nosetester.py
diff options
context:
space:
mode:
authorAlan McIntyre <alan.mcintyre@local>2008-07-13 22:06:13 +0000
committerAlan McIntyre <alan.mcintyre@local>2008-07-13 22:06:13 +0000
commit13b05eea92552d0d65f49033af5267b84049b2ee (patch)
tree185f92e02f35352b26f330404500d38f71766530 /numpy/testing/nosetester.py
parent382db3569b1cccee5b4e813919dced51d8352a97 (diff)
downloadnumpy-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.py5
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)