summaryrefslogtreecommitdiff
path: root/tests/test_repr.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_repr.py')
-rw-r--r--tests/test_repr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_repr.py b/tests/test_repr.py
index 75ed8a9..17c5063 100644
--- a/tests/test_repr.py
+++ b/tests/test_repr.py
@@ -28,7 +28,7 @@ class TestCaseMisc(PexpectTestCase.PexpectTestCase):
""" Exercise derived spawn.__str__() """
# given,
child = pexpect.spawn(None, None)
- child.closed = False
+ child.read_nonblocking = lambda size, timeout: b''
try:
child.expect('alpha', timeout=0.1)
except pexpect.TIMEOUT: