Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c727716 commit 9d8a0e1Copy full SHA for 9d8a0e1
testing/test_recwarn.py
@@ -263,7 +263,7 @@ def test_as_contextmanager(self) -> None:
263
warnings.warn("user", UserWarning)
264
excinfo.match(
265
r"DID NOT WARN. No warnings of type \(.+RuntimeWarning.+,\) were emitted. \n"
266
- r"The list of emitted warnings is: \[UserWarning\('user'\)\]."
+ r"The list of emitted warnings is: \[UserWarning\('user',?\)\]."
267
)
268
269
with pytest.raises(pytest.fail.Exception) as excinfo:
0 commit comments