Skip to content

Commit

Permalink
remove pexpect usign yield test
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Nov 19, 2018
1 parent 6e760df commit 1896bad
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions testing/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand All @@ -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

0 comments on commit 1896bad

Please sign in to comment.