Skip to content

Commit 9d8a0e1

Browse files
userwarning repr on python3.6 adds a comma
1 parent c727716 commit 9d8a0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_recwarn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_as_contextmanager(self) -> None:
263263
warnings.warn("user", UserWarning)
264264
excinfo.match(
265265
r"DID NOT WARN. No warnings of type \(.+RuntimeWarning.+,\) were emitted. \n"
266-
r"The list of emitted warnings is: \[UserWarning\('user'\)\]."
266+
r"The list of emitted warnings is: \[UserWarning\('user',?\)\]."
267267
)
268268

269269
with pytest.raises(pytest.fail.Exception) as excinfo:

0 commit comments

Comments
 (0)