diff options
-rw-r--r-- | tests/test_basic_api.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index 18ed8d64..9ec6e928 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -60,7 +60,10 @@ def test_lexer_classes(): if cls.name in ['XQuery', 'Opa']: # XXX temporary return - tokens = list(inst.get_tokens(test_content)) + try: + tokens = list(inst.get_tokens(test_content)) + except KeyboardInterrupt: + raise KeyboardInterrupt('interrupted %s.get_tokens(): test_content=%r' % (cls.name, test_content)) txt = "" for token in tokens: assert isinstance(token, tuple) |