diff options
author | gbrandl <devnull@localhost> | 2008-09-09 20:47:42 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2008-09-09 20:47:42 +0200 |
commit | 9f4d0e45b796ecb39c668ce94feb8af065a5b184 (patch) | |
tree | e178f3eb02fe11954419a9e5ea170a6a11c94a31 /tests/test_basic_api.py | |
parent | 4434d1b601a8c46e12b1e2c1775f27142a7c4c50 (diff) | |
download | pygments-9f4d0e45b796ecb39c668ce94feb8af065a5b184.tar.gz |
Fix test_basic_api.
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r-- | tests/test_basic_api.py | 8 |
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): |