summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <thomas@kluyver.me.uk>2015-12-14 11:11:10 +0000
committerThomas Kluyver <thomas@kluyver.me.uk>2015-12-14 11:11:10 +0000
commit011ad6090e183ce359c0a74bbd2f2530e1d5178c (patch)
tree2bee917df8a92811e62d32656b1f73ffa5edadc5
parent334691b701371b4b0338d2f082758c3ae1e15cc8 (diff)
downloadpexpect-bugfix-my_spawn-has_no-ptyproc.tar.gz
Check error repr can be str-edbugfix-my_spawn-has_no-ptyproc
-rw-r--r--tests/test_repr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_repr.py b/tests/test_repr.py
index 17c5063..ac33716 100644
--- a/tests/test_repr.py
+++ b/tests/test_repr.py
@@ -31,7 +31,7 @@ class TestCaseMisc(PexpectTestCase.PexpectTestCase):
child.read_nonblocking = lambda size, timeout: b''
try:
child.expect('alpha', timeout=0.1)
- except pexpect.TIMEOUT:
- pass
+ except pexpect.TIMEOUT as e:
+ str(e) # Smoketest
else:
- assert False, 'TIMEOUT exception expected. No exception aised.'
+ assert False, 'TIMEOUT exception expected. No exception raised.'