diff --git a/tests/internal/test_warnings.py b/tests/internal/test_warnings.py index 9ce955b74..96ec96b40 100644 --- a/tests/internal/test_warnings.py +++ b/tests/internal/test_warnings.py @@ -102,8 +102,8 @@ def add(cls, x, y): expected_warning = ( r"Call to deprecated .*(method|function).* do_plus\." - " \(Usage of this legacy .*(method|function).* is deprecated\. Use `\.add` instead\.\)" - " -- Deprecated since version v1\.2\." + r" \(Usage of this legacy .*(method|function).* is deprecated\. Use `\.add` instead\.\)" + r" -- Deprecated since version v1\.2\." ) with pytest.warns(UserDeprecationWarning, match=expected_warning):