summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index 50dbd943..760dda63 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -3,7 +3,7 @@
Pygments basic API tests
~~~~~~~~~~~~~~~~~~~~~~~~
- :copyright: 2006-2007 by Georg Brandl.
+ :copyright: 2006-2008 by Georg Brandl.
:license: BSD, see LICENSE for more details.
"""
@@ -136,7 +136,11 @@ class FormattersTest(unittest.TestCase):
inst = formatter(opt1="val1")
except (ImportError, FontNotFound):
continue
- inst.get_style_defs()
+ try:
+ inst.get_style_defs()
+ except NotImplementedError:
+ # may be raised by formatters for which it doesn't make sense
+ pass
inst.format(ts, out)
def test_encodings(self):