summaryrefslogtreecommitdiff
path: root/tests/support
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2017-01-22 19:57:19 +0100
committerGeorg Brandl <georg@python.org>2017-01-22 19:57:19 +0100
commit9ca765ccb0597781159a4df6a43b25eb8f8125c5 (patch)
tree2fc76e355f69660ca9a7fdc0122562be12bdf4ba /tests/support
parent3a1d729f6bf94ff5d0233edf094b8afc434c48c8 (diff)
downloadpygments-git-9ca765ccb0597781159a4df6a43b25eb8f8125c5.tar.gz
-x functionality updates, Python 3 compatibility fix
Diffstat (limited to 'tests/support')
-rw-r--r--tests/support/empty.py1
-rw-r--r--tests/support/html_formatter.py5
-rw-r--r--tests/support/python_lexer.py11
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'