Merge pull request #3589 from hynek/master

Fix 2 DeprecationWarnings about invalid escape seq
This commit is contained in:
Ronny Pfannschmidt 2018-06-16 11:56:35 +02:00 committed by GitHub
commit 4dc7b4ace6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -497,7 +497,7 @@ def _is_numpy_array(obj):
def raises(expected_exception, *args, **kwargs):
"""
r"""
Assert that a code block/function call raises ``expected_exception``
and raise a failure exception otherwise.

View File

@ -85,7 +85,7 @@ class _DeprecatedCallContext(object):
def warns(expected_warning, *args, **kwargs):
"""Assert that code raises a particular class of warning.
r"""Assert that code raises a particular class of warning.
Specifically, the parameter ``expected_warning`` can be a warning class or
sequence of warning classes, and the inside the ``with`` block must issue a warning of that class or