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.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.'