Skip to content

Commit ce0ed9c

Browse files
committed
TODO: add failing test_capture_with_testdir_parseconfig [skip appveyor]
Fails with: > OSError: reading from stdin while output is captured Also tests #4330 (i.e. fails without #4330 earlier already).
1 parent b7863a5 commit ce0ed9c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

testing/test_pdb.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,3 +853,22 @@ def test_inner(testdir):
853853
rest = child.read().decode("utf8")
854854
TestPDB.flush(child)
855855
assert child.exitstatus == 0, rest
856+
857+
858+
def test_capture_with_testdir_parseconfig(testdir):
859+
"""Test capturing with inner node of config setup. Also tests #4330."""
860+
p = testdir.makepyfile(
861+
"""
862+
def test_inner(testdir):
863+
hello = testdir.makefile(".py", hello="world")
864+
__import__('pdb').set_trace()
865+
node = testdir.parseconfig(hello)
866+
"""
867+
)
868+
child = testdir.spawn_pytest("-s -p pytester %s" % p)
869+
child.expect(r"\(Pdb")
870+
child.sendline("n")
871+
child.sendline("c")
872+
rest = child.read().decode("utf8")
873+
TestPDB.flush(child)
874+
assert child.exitstatus == 0, rest

0 commit comments

Comments
 (0)