From 44bf7a2ec0b52b60089ebd8439f64487df079214 Mon Sep 17 00:00:00 2001 From: Joachim B Haga Date: Mon, 22 Jan 2024 22:29:14 +0100 Subject: [PATCH] Mark some xfails from #10042 as non-strict (#11832) Related to #10042, some tests in `test_debugging.py` are actually flaky and should not be considered strict xfailures. --- testing/test_debugging.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testing/test_debugging.py b/testing/test_debugging.py index eecc1e39f..ea3367e57 100644 --- a/testing/test_debugging.py +++ b/testing/test_debugging.py @@ -372,7 +372,7 @@ class TestPDB: result = pytester.runpytest_subprocess("--pdb", ".") result.stdout.fnmatch_lines(["-> import unknown"]) - @pytest.mark.xfail(reason="#10042") + @pytest.mark.xfail(reason="#10042", strict=False) def test_pdb_interaction_capturing_simple(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ @@ -541,7 +541,7 @@ class TestPDB: assert "BdbQuit" not in rest assert "UNEXPECTED EXCEPTION" not in rest - @pytest.mark.xfail(reason="#10042") + @pytest.mark.xfail(reason="#10042", strict=False) def test_pdb_interaction_capturing_twice(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ @@ -577,7 +577,7 @@ class TestPDB: assert "1 failed" in rest self.flush(child) - @pytest.mark.xfail(reason="#10042") + @pytest.mark.xfail(reason="#10042", strict=False) def test_pdb_with_injected_do_debug(self, pytester: Pytester) -> None: """Simulates pdbpp, which injects Pdb into do_debug, and uses self.__class__ in do_continue. @@ -1022,7 +1022,7 @@ class TestDebuggingBreakpoints: assert "reading from stdin while output" not in rest TestPDB.flush(child) - @pytest.mark.xfail(reason="#10042") + @pytest.mark.xfail(reason="#10042", strict=False) def test_pdb_not_altered(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ @@ -1182,7 +1182,7 @@ def test_quit_with_swallowed_SystemExit(pytester: Pytester) -> None: @pytest.mark.parametrize("fixture", ("capfd", "capsys")) -@pytest.mark.xfail(reason="#10042") +@pytest.mark.xfail(reason="#10042", strict=False) def test_pdb_suspends_fixture_capturing(pytester: Pytester, fixture: str) -> None: """Using "-s" with pytest should suspend/resume fixture capturing.""" p1 = pytester.makepyfile(