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 | 1f75c51afdbe281e0044ca5c5369e14fc5e0e8e1 (patch) | |
tree | c790ff3b447d5c41e2e50cdd5d18b0071772ee9b /tests | |
parent | 041b80fab1922800ae0618fd4d3d8d78bf7063b4 (diff) | |
download | pygments-1f75c51afdbe281e0044ca5c5369e14fc5e0e8e1.tar.gz |
-x functionality updates, Python 3 compatibility fix
Diffstat (limited to 'tests')
-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' |