Skip to content

Commit dad0be9

Browse files
committed
testing: fix warning from test
I'm not sure what's going on but the tested warning from the test somehow leaks into the actual top pytest. Run the test in a subprocess to fix this.
1 parent d036b12 commit dad0be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def test():
440440
pass
441441
"""
442442
)
443-
result = pytester.runpytest("-W", "ignore::bizbaz.Bizbaz")
443+
result = pytester.runpytest_subprocess("-W", "ignore::bizbaz.Bizbaz")
444444
result.stdout.fnmatch_lines(
445445
[
446446
f"*== {WARNINGS_SUMMARY_HEADER} ==*",

0 commit comments

Comments
 (0)