@@ -263,23 +263,23 @@ def test_as_contextmanager(self) -> None:
263
263
with pytest .warns (RuntimeWarning ):
264
264
warnings .warn ("user" , UserWarning )
265
265
excinfo .match (
266
- r"DID NOT WARN. No warnings of type \(.+RuntimeWarning.+,\) was emitted. "
266
+ r"DID NOT WARN. No warnings of type \(.+RuntimeWarning.+,\) were emitted. "
267
267
r"The list of emitted warnings is: \[UserWarning\('user',?\)\]."
268
268
)
269
269
270
270
with pytest .raises (pytest .fail .Exception ) as excinfo :
271
271
with pytest .warns (UserWarning ):
272
272
warnings .warn ("runtime" , RuntimeWarning )
273
273
excinfo .match (
274
- r"DID NOT WARN. No warnings of type \(.+UserWarning.+,\) was emitted. "
274
+ r"DID NOT WARN. No warnings of type \(.+UserWarning.+,\) were emitted. "
275
275
r"The list of emitted warnings is: \[RuntimeWarning\('runtime',?\)\]."
276
276
)
277
277
278
278
with pytest .raises (pytest .fail .Exception ) as excinfo :
279
279
with pytest .warns (UserWarning ):
280
280
pass
281
281
excinfo .match (
282
- r"DID NOT WARN. No warnings of type \(.+UserWarning.+,\) was emitted. "
282
+ r"DID NOT WARN. No warnings of type \(.+UserWarning.+,\) were emitted. "
283
283
r"The list of emitted warnings is: \[\]."
284
284
)
285
285
@@ -290,7 +290,7 @@ def test_as_contextmanager(self) -> None:
290
290
warnings .warn ("import" , ImportWarning )
291
291
292
292
message_template = (
293
- "DID NOT WARN. No warnings of type {0} was emitted. "
293
+ "DID NOT WARN. No warnings of type {0} were emitted. "
294
294
"The list of emitted warnings is: {1}."
295
295
)
296
296
excinfo .match (
0 commit comments