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 @@ -206,13 +206,13 @@ def test_as_contextmanager(self):
206
206
with pytest .warns (RuntimeWarning ):
207
207
warnings .warn ("user" , UserWarning )
208
208
excinfo .match (r"DID NOT WARN. No warnings of type \(.+RuntimeWarning.+,\) was emitted. "
209
- r"The list of emitted warnings is: \[UserWarning\('user',\)\]." )
209
+ r"The list of emitted warnings is: \[UserWarning\('user',? \)\]." )
210
210
211
211
with pytest .raises (pytest .fail .Exception ) as excinfo :
212
212
with pytest .warns (UserWarning ):
213
213
warnings .warn ("runtime" , RuntimeWarning )
214
214
excinfo .match (r"DID NOT WARN. No warnings of type \(.+UserWarning.+,\) was emitted. "
215
- r"The list of emitted warnings is: \[RuntimeWarning\('runtime',\)\]." )
215
+ r"The list of emitted warnings is: \[RuntimeWarning\('runtime',? \)\]." )
216
216
217
217
with pytest .raises (pytest .fail .Exception ) as excinfo :
218
218
with pytest .warns (UserWarning ):
You can’t perform that action at this time.
0 commit comments