From dad0be9135b0846607c8dd7210a70c9c045fc3f1 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Tue, 7 Oct 2025 00:32:05 +0300 Subject: [PATCH] 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. --- testing/test_warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_warnings.py b/testing/test_warnings.py index 467753b6a6e..4800a916eac 100644 --- a/testing/test_warnings.py +++ b/testing/test_warnings.py @@ -440,7 +440,7 @@ def test(): pass """ ) - result = pytester.runpytest("-W", "ignore::bizbaz.Bizbaz") + result = pytester.runpytest_subprocess("-W", "ignore::bizbaz.Bizbaz") result.stdout.fnmatch_lines( [ f"*== {WARNINGS_SUMMARY_HEADER} ==*",