Skip to content

Commit

Permalink
Merge pull request #3116 from brianmaissy/pexpect_test_hangs_on_mac
Browse files Browse the repository at this point in the history
use flush in order to avoid hanging on mac
  • Loading branch information
nicoddemus authored Jan 23, 2018
2 parents baa189f + 0a0d97a commit ff90c9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/2022.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed hanging pexpect test on MacOS by using flush() instead of wait().
3 changes: 1 addition & 2 deletions testing/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,4 @@ def test_foo():
child = testdir.spawn_pytest("--pdbcls=custom_pdb:CustomPdb %s" % str(p1))

child.expect('custom set_trace>')
if child.isalive():
child.wait()
self.flush(child)

0 comments on commit ff90c9e

Please sign in to comment.