Fix test to pass
This commit is contained in:
parent
a46b94950c
commit
533f4cc10c
|
@ -702,7 +702,7 @@ class TestTraceOption():
|
||||||
p1 = testdir.makepyfile(
|
p1 = testdir.makepyfile(
|
||||||
"""
|
"""
|
||||||
def test_1():
|
def test_1():
|
||||||
assert 1
|
assert True
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
child = testdir.spawn_pytest("--trace " + str(p1))
|
child = testdir.spawn_pytest("--trace " + str(p1))
|
||||||
|
@ -710,6 +710,6 @@ class TestTraceOption():
|
||||||
child.expect("(Pdb)")
|
child.expect("(Pdb)")
|
||||||
child.sendeof()
|
child.sendeof()
|
||||||
rest = child.read().decode("utf8")
|
rest = child.read().decode("utf8")
|
||||||
assert "1 failed" in rest
|
assert "1 passed" in rest
|
||||||
assert "reading from stdin while output" not in rest
|
assert "reading from stdin while output" not in rest
|
||||||
TestPDB.flush(child)
|
TestPDB.flush(child)
|
Loading…
Reference in New Issue