diff options
author | Georg Brandl <georg@python.org> | 2017-01-22 19:57:19 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2017-01-22 19:57:19 +0100 |
commit | 9ca765ccb0597781159a4df6a43b25eb8f8125c5 (patch) | |
tree | 2fc76e355f69660ca9a7fdc0122562be12bdf4ba /tests/support | |
parent | 3a1d729f6bf94ff5d0233edf094b8afc434c48c8 (diff) | |
download | pygments-git-9ca765ccb0597781159a4df6a43b25eb8f8125c5.tar.gz |
-x functionality updates, Python 3 compatibility fix
Diffstat (limited to 'tests/support')
-rw-r--r-- | tests/support/empty.py | 1 | ||||
-rw-r--r-- | tests/support/html_formatter.py | 5 | ||||
-rw-r--r-- | tests/support/python_lexer.py | 11 |
3 files changed, 8 insertions, 9 deletions
diff --git a/tests/support/empty.py b/tests/support/empty.py index e69de29b..40a96afc 100644 --- a/tests/support/empty.py +++ b/tests/support/empty.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/tests/support/html_formatter.py b/tests/support/html_formatter.py index 7f5581ed..169cd4af 100644 --- a/tests/support/html_formatter.py +++ b/tests/support/html_formatter.py @@ -1,5 +1,6 @@ - +# -*- coding: utf-8 -*- from pygments.formatters import HtmlFormatter + class HtmlFormatterWrapper(HtmlFormatter): - name = 'HtmlWrapper' + name = 'HtmlWrapper' diff --git a/tests/support/python_lexer.py b/tests/support/python_lexer.py index ad34d31b..565ee674 100644 --- a/tests/support/python_lexer.py +++ b/tests/support/python_lexer.py @@ -1,15 +1,12 @@ # -*- coding: utf-8 -*- -""" - pygments.lexers.python (as CustomLexer) - ~~~~~~~~~~~~~~~~~~~~~~ - - For test_cmdline.py -""" +# pygments.lexers.python (as CustomLexer) for test_cmdline.py from pygments.lexers import PythonLexer + class CustomLexer(PythonLexer): name = 'PythonLexerWrapper' + class LexerWrapper(CustomLexer): - name="PythonLexerWrapperWrapper" + name = 'PythonLexerWrapperWrapper' |