File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -853,3 +853,22 @@ def test_inner(testdir):
853
853
rest = child .read ().decode ("utf8" )
854
854
TestPDB .flush (child )
855
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
You can’t perform that action at this time.
0 commit comments