diff options
author | Thomas Kluyver <thomas@kluyver.me.uk> | 2015-12-14 11:11:10 +0000 |
---|---|---|
committer | Thomas Kluyver <thomas@kluyver.me.uk> | 2015-12-14 11:11:10 +0000 |
commit | 011ad6090e183ce359c0a74bbd2f2530e1d5178c (patch) | |
tree | 2bee917df8a92811e62d32656b1f73ffa5edadc5 | |
parent | 334691b701371b4b0338d2f082758c3ae1e15cc8 (diff) | |
download | pexpect-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.py | 6 |
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.' |