Also use flush where wait was called unconditionally

This commit is contained in:
Jason R. Coombs 2016-10-21 12:11:35 -04:00
parent 11ec96a927
commit 60a347aeb5
1 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ class TestPDB:
child = testdir.spawn("%s %s" %(sys.executable, p1))
child.expect("x = 5")
child.sendeof()
child.wait()
self.flush(child)
def test_pdb_used_in_generate_tests(self, testdir):
p1 = testdir.makepyfile("""
@ -295,7 +295,7 @@ class TestPDB:
child = testdir.spawn_pytest(str(p1))
child.expect("x = 5")
child.sendeof()
child.wait()
self.flush(child)
def test_pdb_collection_failure_is_shown(self, testdir):
p1 = testdir.makepyfile("""xxx """)