We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7863a5 commit ce0ed9cCopy full SHA for ce0ed9c
testing/test_pdb.py
@@ -853,3 +853,22 @@ def test_inner(testdir):
853
rest = child.read().decode("utf8")
854
TestPDB.flush(child)
855
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