summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2017-01-22 18:32:03 +0000
committerGeorg Brandl <georg@python.org>2017-01-22 18:32:03 +0000
commit9dbdeeaed19e6d4d1e6f8bae973bac61ddd682d0 (patch)
treeace915bc11ad4477ae1be0c35b6a4923d46c9c80 /tests/test_basic_api.py
parent32f536a056334e3a02a713860dc9294a4d752723 (diff)
parent2021a297ae428e8f77dfad8fd3245bb4bf4eb6a3 (diff)
downloadpygments-git-9dbdeeaed19e6d4d1e6f8bae973bac61ddd682d0.tar.gz
Merged in zhouzhen1/pygments-main/perllexer (pull request #688)
Fix Perl5 lexer for namespaces/modules.
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py10
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)