summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-02-27 10:23:18 -0700
committerCharles Harris <charlesr.harris@gmail.com>2014-02-27 10:23:18 -0700
commit8c4d9bedd9d85d86c41f956cdb5140e112c2ac08 (patch)
tree14596cf9cb647dd66049908404e55dc36f608c02 /numpy/testing/utils.py
parent3a2f048b830822e8395f0d42c42b8fd395a14204 (diff)
parenta0470bc303f760ee7f14e2d73d150f94599e5692 (diff)
downloadnumpy-8c4d9bedd9d85d86c41f956cdb5140e112c2ac08.tar.gz
Merge pull request #4383 from argriffing/more-versionadded
DOC: some versionadded notes
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py
index 97908c7e8..4905898d2 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -1156,6 +1156,8 @@ def assert_allclose(actual, desired, rtol=1e-7, atol=0,
It compares the difference between `actual` and `desired` to
``atol + rtol * abs(desired)``.
+ .. versionadded:: 1.5.0
+
Parameters
----------
actual : array_like
@@ -1465,6 +1467,7 @@ class WarningManager(object):
self._module.filters = self._filters
self._module.showwarning = self._showwarning
+
def assert_warns(warning_class, func, *args, **kw):
"""
Fail unless the given callable throws the specified warning.
@@ -1474,6 +1477,8 @@ def assert_warns(warning_class, func, *args, **kw):
If a different type of warning is thrown, it will not be caught, and the
test case will be deemed to have suffered an error.
+ .. versionadded:: 1.4.0
+
Parameters
----------
warning_class : class
@@ -1505,6 +1510,8 @@ def assert_no_warnings(func, *args, **kw):
"""
Fail if the given callable produces any warnings.
+ .. versionadded:: 1.7.0
+
Parameters
----------
func : callable