From 011ad6090e183ce359c0a74bbd2f2530e1d5178c Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Mon, 14 Dec 2015 11:11:10 +0000 Subject: Check error repr can be str-ed --- tests/test_repr.py | 6 +++--- 1 file 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.' -- cgit v1.2.1