Skip to content

Commit

Permalink
userwarning repr on python3.6 adds a comma
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Oct 4, 2021
1 parent c727716 commit 9d8a0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/test_recwarn.py
Expand Up @@ -263,7 +263,7 @@ def test_as_contextmanager(self) -> None:
warnings.warn("user", UserWarning)
excinfo.match(
r"DID NOT WARN. No warnings of type \(.+RuntimeWarning.+,\) were emitted. \n"
r"The list of emitted warnings is: \[UserWarning\('user'\)\]."
r"The list of emitted warnings is: \[UserWarning\('user',?\)\]."
)

with pytest.raises(pytest.fail.Exception) as excinfo:
Expand Down

0 comments on commit 9d8a0e1

Please sign in to comment.