diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py index 83ff3d568d1..8ac8a42ab73 100644 --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -63,7 +63,7 @@ def test_excinfo_from_exception_simple() -> None: def test_excinfo_from_exception_missing_traceback_assertion() -> None: - with pytest.raises(AssertionError, match=r'must have.*__traceback__'): + with pytest.raises(AssertionError, match=r"must have.*__traceback__"): _pytest._code.ExceptionInfo.from_exception(ValueError())