From 1896bad9d49fc018f27605f83a9bfab777d9839c Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 29 Aug 2018 08:05:16 +0200 Subject: [PATCH] remove pexpect usign yield test --- testing/test_pdb.py | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/testing/test_pdb.py b/testing/test_pdb.py index dd349454b11..157d15e0c78 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -809,27 +809,6 @@ def test_1(): assert "reading from stdin while output" not in rest TestPDB.flush(child) - def test_trace_against_yield_test(self, testdir): - p1 = testdir.makepyfile( - """ - def is_equal(a, b): - assert a == b - - def test_1(): - yield is_equal, 1, 1 - """ - ) - child = testdir.spawn_pytest( - "{} --trace {}".format(SHOW_PYTEST_WARNINGS_ARG, str(p1)) - ) - child.expect("is_equal") - child.expect("Pdb") - child.sendeof() - rest = child.read().decode("utf8") - assert "1 passed" in rest - assert "reading from stdin while output" not in rest - TestPDB.flush(child) - def test_trace_after_runpytest(testdir): """Test that debugging's pytest_configure is re-entrant.""" @@ -855,4 +834,4 @@ def test_inner(testdir): child.sendline("c") rest = child.read().decode("utf8") TestPDB.flush(child) - assert child.exitstatus == 0, rest + assert child.exitstatus == 0, rest \ No newline at end of file