Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions testing/test_debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ def test_pdb_prevent_ConftestImportFailure_hiding_exception(
result = pytester.runpytest_subprocess("--pdb", ".")
result.stdout.fnmatch_lines(["-> import unknown"])

@pytest.mark.xfail(reason="#10042")
def test_pdb_interaction_capturing_simple(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
Expand Down Expand Up @@ -521,6 +522,7 @@ def function_1():
assert "BdbQuit" not in rest
assert "UNEXPECTED EXCEPTION" not in rest

@pytest.mark.xfail(reason="#10042")
def test_pdb_interaction_capturing_twice(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
Expand Down Expand Up @@ -556,6 +558,7 @@ def test_1():
assert "1 failed" in rest
self.flush(child)

@pytest.mark.xfail(reason="#10042")
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.
Expand Down Expand Up @@ -1000,6 +1003,7 @@ def test_1():
assert "reading from stdin while output" not in rest
TestPDB.flush(child)

@pytest.mark.xfail(reason="#10042")
def test_pdb_not_altered(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
Expand Down Expand Up @@ -1159,6 +1163,7 @@ def test_2():


@pytest.mark.parametrize("fixture", ("capfd", "capsys"))
@pytest.mark.xfail(reason="#10042")
def test_pdb_suspends_fixture_capturing(pytester: Pytester, fixture: str) -> None:
"""Using "-s" with pytest should suspend/resume fixture capturing."""
p1 = pytester.makepyfile(
Expand Down