From 4a3863c2e28df69b59315a14b3a2ae4767d07ef9 Mon Sep 17 00:00:00 2001 From: Brian Maissy Date: Sun, 14 Jan 2018 23:00:23 +0200 Subject: [PATCH 1/2] use flush in order to avoid hanging on mac --- testing/test_pdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testing/test_pdb.py b/testing/test_pdb.py index a565cbd0d..8618473bb 100644 --- a/testing/test_pdb.py +++ b/testing/test_pdb.py @@ -402,5 +402,4 @@ class TestPDB(object): child = testdir.spawn_pytest("--pdbcls=custom_pdb:CustomPdb %s" % str(p1)) child.expect('custom set_trace>') - if child.isalive(): - child.wait() + self.flush(child) From 0a0d97aeb5eac43101b6f3f8a4b7d93f27464568 Mon Sep 17 00:00:00 2001 From: Brian Maissy Date: Sun, 14 Jan 2018 23:14:59 +0200 Subject: [PATCH 2/2] added changelog news fragment --- changelog/2022.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/2022.bugfix diff --git a/changelog/2022.bugfix b/changelog/2022.bugfix new file mode 100644 index 000000000..67c9c8f77 --- /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