From da98bbc030c272edb1a8548a458b3957e29ce346 Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Sat, 16 Jan 2016 16:35:28 -0800 Subject: DOC: document changes to assert_warns --- numpy/testing/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 72105ca31..10a48ad79 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -1736,6 +1736,8 @@ def assert_warns(warning_class, *args, **kwargs): with assert_warns(SomeWarning): do_something() + The ability to be used as a context manager is new in NumPy v1.11.0. + .. versionadded:: 1.4.0 Parameters @@ -1783,6 +1785,8 @@ def assert_no_warnings(*args, **kwargs): with assert_no_warnings(): do_something() + The ability to be used as a context manager is new in NumPy v1.11.0. + .. versionadded:: 1.7.0 Parameters -- cgit v1.2.1