|
|
2282bf |
diff -up pytest-7.1.3/testing/test_debugging.py.orig pytest-7.1.3/testing/test_debugging.py
|
|
|
2282bf |
--- pytest-7.1.3/testing/test_debugging.py.orig 2022-09-02 13:12:55.000000000 +0200
|
|
|
2282bf |
+++ pytest-7.1.3/testing/test_debugging.py 2022-09-05 16:40:54.921946205 +0200
|
|
|
2282bf |
@@ -353,7 +353,7 @@ class TestPDB:
|
|
|
2282bf |
result = pytester.runpytest_subprocess("--pdb", ".")
|
|
|
2282bf |
result.stdout.fnmatch_lines(["-> import unknown"])
|
|
|
2282bf |
|
|
|
2282bf |
- @pytest.mark.xfail(reason="#10042")
|
|
|
2282bf |
+ @pytest.mark.xfail(reason="#10042", strict=False)
|
|
|
2282bf |
def test_pdb_interaction_capturing_simple(self, pytester: Pytester) -> None:
|
|
|
2282bf |
p1 = pytester.makepyfile(
|
|
|
2282bf |
"""
|
|
|
2282bf |
@@ -522,7 +522,7 @@ class TestPDB:
|
|
|
2282bf |
assert "BdbQuit" not in rest
|
|
|
2282bf |
assert "UNEXPECTED EXCEPTION" not in rest
|
|
|
2282bf |
|
|
|
2282bf |
- @pytest.mark.xfail(reason="#10042")
|
|
|
2282bf |
+ @pytest.mark.xfail(reason="#10042", strict=False)
|
|
|
2282bf |
def test_pdb_interaction_capturing_twice(self, pytester: Pytester) -> None:
|
|
|
2282bf |
p1 = pytester.makepyfile(
|
|
|
2282bf |
"""
|
|
|
2282bf |
@@ -558,7 +558,7 @@ class TestPDB:
|
|
|
2282bf |
assert "1 failed" in rest
|
|
|
2282bf |
self.flush(child)
|
|
|
2282bf |
|
|
|
2282bf |
- @pytest.mark.xfail(reason="#10042")
|
|
|
2282bf |
+ @pytest.mark.xfail(reason="#10042", strict=False)
|
|
|
2282bf |
def test_pdb_with_injected_do_debug(self, pytester: Pytester) -> None:
|
|
|
2282bf |
"""Simulates pdbpp, which injects Pdb into do_debug, and uses
|
|
|
2282bf |
self.__class__ in do_continue.
|
|
|
2282bf |
@@ -1003,7 +1003,7 @@ class TestDebuggingBreakpoints:
|
|
|
2282bf |
assert "reading from stdin while output" not in rest
|
|
|
2282bf |
TestPDB.flush(child)
|
|
|
2282bf |
|
|
|
2282bf |
- @pytest.mark.xfail(reason="#10042")
|
|
|
2282bf |
+ @pytest.mark.xfail(reason="#10042",strict=False)
|
|
|
2282bf |
def test_pdb_not_altered(self, pytester: Pytester) -> None:
|
|
|
2282bf |
p1 = pytester.makepyfile(
|
|
|
2282bf |
"""
|
|
|
2282bf |
@@ -1163,7 +1163,7 @@ def test_quit_with_swallowed_SystemExit(
|
|
|
2282bf |
|
|
|
2282bf |
|
|
|
2282bf |
@pytest.mark.parametrize("fixture", ("capfd", "capsys"))
|
|
|
2282bf |
-@pytest.mark.xfail(reason="#10042")
|
|
|
2282bf |
+@pytest.mark.xfail(reason="#10042", strict=False)
|
|
|
2282bf |
def test_pdb_suspends_fixture_capturing(pytester: Pytester, fixture: str) -> None:
|
|
|
2282bf |
"""Using "-s" with pytest should suspend/resume fixture capturing."""
|
|
|
2282bf |
p1 = pytester.makepyfile(
|