Skip to content

Commit acb8f23

Browse files
committed
Fix 2 DeprecationWarnings about invalid escape seq
1 parent b285078 commit acb8f23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/_pytest/python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def _is_numpy_array(obj):
497497

498498

499499
def raises(expected_exception, *args, **kwargs):
500-
"""
500+
r"""
501501
Assert that a code block/function call raises ``expected_exception``
502502
and raise a failure exception otherwise.
503503

src/_pytest/recwarn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __exit__(self, exc_type, exc_val, exc_tb):
8585

8686

8787
def warns(expected_warning, *args, **kwargs):
88-
"""Assert that code raises a particular class of warning.
88+
r"""Assert that code raises a particular class of warning.
8989
9090
Specifically, the parameter ``expected_warning`` can be a warning class or
9191
sequence of warning classes, and the inside the ``with`` block must issue a warning of that class or

0 commit comments

Comments
 (0)