File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -263,15 +263,15 @@ def test_as_contextmanager(self) -> None:
263
263
warnings .warn ("user" , UserWarning )
264
264
excinfo .match (
265
265
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',? \)\]."
267
267
)
268
268
269
269
with pytest .raises (pytest .fail .Exception ) as excinfo :
270
270
with pytest .warns (UserWarning ):
271
271
warnings .warn ("runtime" , RuntimeWarning )
272
272
excinfo .match (
273
273
r"DID NOT WARN. No warnings of type \(.+UserWarning.+,\) were emitted. \n"
274
- r"The list of emitted warnings is: \[RuntimeWarning\('runtime'\)]."
274
+ r"The list of emitted warnings is: \[RuntimeWarning\('runtime',? \)]."
275
275
)
276
276
277
277
with pytest .raises (pytest .fail .Exception ) as excinfo :
You can’t perform that action at this time.
0 commit comments