diff --git a/changelog/2022.bugfix b/changelog/2022.bugfix new file mode 100644 index 00000000000..67c9c8f7731 --- /dev/null +++ b/changelog/2022.bugfix @@ -0,0 +1 @@ +Fixed hanging pexpect test on MacOS by using flush() instead of wait(). \ No newline at end of file diff --git a/testing/test_pdb.py b/testing/test_pdb.py index a565cbd0df2..8618473bb15 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -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)