Show More
@@ -1,24 +1,15 b'' | |||
|
1 | 1 | """Test lexers module""" |
|
2 | #----------------------------------------------------------------------------- | |
|
3 |
# |
|
|
4 | # | |
|
5 | # Distributed under the terms of the BSD License. The full license is in | |
|
6 | # the file COPYING, distributed as part of this software. | |
|
7 | #----------------------------------------------------------------------------- | |
|
8 | ||
|
9 | #----------------------------------------------------------------------------- | |
|
10 | # Imports | |
|
11 | #----------------------------------------------------------------------------- | |
|
2 | ||
|
3 | # Copyright (c) IPython Development Team. | |
|
4 | # Distributed under the terms of the Modified BSD License. | |
|
5 | ||
|
6 | from unittest import TestCase | |
|
12 | 7 | from pygments.token import Token |
|
13 | 8 | |
|
14 | from jupyter_nbconvert.tests.base import TestsBase | |
|
15 | 9 | from .. import lexers |
|
16 | 10 | |
|
17 | 11 | |
|
18 | #----------------------------------------------------------------------------- | |
|
19 | # Classes and functions | |
|
20 | #----------------------------------------------------------------------------- | |
|
21 | class TestLexers(TestsBase): | |
|
12 | class TestLexers(TestCase): | |
|
22 | 13 | """Collection of lexers tests""" |
|
23 | 14 | def setUp(self): |
|
24 | 15 | self.lexer = lexers.IPythonLexer() |
@@ -193,6 +193,8 b" if not have['matplotlib']:" | |||
|
193 | 193 | sec = test_sections['lib'] |
|
194 | 194 | if not have['zmq']: |
|
195 | 195 | sec.exclude('kernel') |
|
196 | if not have['pygments']: | |
|
197 | sec.exclude('tests.test_lexers') | |
|
196 | 198 | # We do this unconditionally, so that the test suite doesn't import |
|
197 | 199 | # gtk, changing the default encoding and masking some unicode bugs. |
|
198 | 200 | sec.exclude('inputhookgtk') |
General Comments 0
You need to be logged in to leave comments.
Login now