diff options
author | Georg Brandl <georg@python.org> | 2017-01-22 17:53:46 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2017-01-22 17:53:46 +0000 |
commit | 0e2314f0cebe65594af7a1eb0b2164cce827558c (patch) | |
tree | d1d8595b8f78cc5949bba6a7634ecddd4e675d0e /tests/test_basic_api.py | |
parent | 045732d3501cdb693537145393bc25411a4eeb84 (diff) | |
parent | b1bad5b7f9f574a6345587fad2850b18b2707eb7 (diff) | |
download | pygments-0e2314f0cebe65594af7a1eb0b2164cce827558c.tar.gz |
Merged in belak/pygments-main/lexer-delphi-dpr-ext (pull request #655)
Match .dpr files as Delphi
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r-- | tests/test_basic_api.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index 022e6c55..ac3b4a51 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -3,7 +3,7 @@ Pygments basic API tests ~~~~~~~~~~~~~~~~~~~~~~~~ - :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -161,8 +161,8 @@ def test_formatter_public_api(): try: inst = formatter(opt1="val1") - except (ImportError, FontNotFound): - raise support.SkipTest + except (ImportError, FontNotFound) as e: + raise support.SkipTest(e) try: inst.get_style_defs() @@ -209,9 +209,9 @@ def test_formatter_unicode_handling(): def verify(formatter): try: inst = formatter(encoding=None) - except (ImportError, FontNotFound): + except (ImportError, FontNotFound) as e: # some dependency or font not installed - raise support.SkipTest + raise support.SkipTest(e) if formatter.name != 'Raw tokens': out = format(tokens, inst) |