summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-18 13:25:15 +0100
committerGeorg Brandl <georg@python.org>2014-01-18 13:25:15 +0100
commita9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8 (patch)
treeface5db25ebef227315a0ae1080d4b2262f6fe23 /tests/test_basic_api.py
parente921fe0b430608cb7e0c89f7fada9260cb4822eb (diff)
downloadpygments-a9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8.tar.gz
futurizing: move to print_function and "except X as Y" syntax
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py
index 1c6933a7..ecf45d84 100644
--- a/tests/test_basic_api.py
+++ b/tests/test_basic_api.py
@@ -6,6 +6,7 @@
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
+from __future__ import print_function
import os
import random
@@ -71,7 +72,7 @@ def test_lexer_classes():
assert isinstance(token, tuple)
assert isinstance(token[0], _TokenType)
if isinstance(token[1], str):
- print repr(token[1])
+ print(repr(token[1]))
assert isinstance(token[1], unicode)
txt += token[1]
assert txt == test_content, "%s lexer roundtrip failed: %r != %r" % \