Fix 2 DeprecationWarnings about invalid escape seq

This commit is contained in:
Hynek Schlawack 2018-06-16 10:37:33 +02:00
parent b285078db4
commit acb8f23311
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