summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.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_examplefiles.py
parentac3e3693639ef5b76b94c7b99f45e053a285c039 (diff)
downloadpygments-fcfeeb36e6c4df0cb6b51794be6e5d433f1e5fd9.tar.gz
file() -> open() in tests.
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index 57d17033..baf6978a 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -40,7 +40,7 @@ def test_example_files():
yield check_lexer, lx, absfn
def check_lexer(lx, absfn):
- text = file(absfn, 'U').read()
+ text = open(absfn, 'U').read()
text = text.strip('\n') + '\n'
try:
text = text.decode('utf-8')