From 13b05eea92552d0d65f49033af5267b84049b2ee Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Sun, 13 Jul 2008 22:06:13 +0000 Subject: Replaced utils.raises implementation with the nose function. Added utils.assert_raises (uses the function from nose). Wrapped text for test() deprecation warning. --- numpy/testing/nosetester.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/testing/nosetester.py') 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) -- cgit v1.2.1