summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2008-11-25 21:46:31 +0100
committergbrandl <devnull@localhost>2008-11-25 21:46:31 +0100
commitfcfeeb36e6c4df0cb6b51794be6e5d433f1e5fd9 (patch)
tree41d045a1fa662d8b07f815daf313fc1ebd739220 /tests/test_cmdline.py
parentac3e3693639ef5b76b94c7b99f45e053a285c039 (diff)
downloadpygments-fcfeeb36e6c4df0cb6b51794be6e5d433f1e5fd9.tar.gz
file() -> open() in tests.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index eaf1cbfc..68b2d7b7 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -3,7 +3,7 @@
Command line test
~~~~~~~~~~~~~~~~~
- :copyright: 2006-2007 by Georg Brandl.
+ :copyright: 2006-2008 by Georg Brandl.
:license: BSD, see LICENSE for more details.
"""
@@ -87,7 +87,7 @@ class CmdLineTest(unittest.TestCase):
from pygments.lexers import PythonLexer
from pygments.formatters import HtmlFormatter
filename = TESTFILE
- code = file(filename).read()
+ code = open(filename).read()
output = highlight(code, PythonLexer(), HtmlFormatter())