summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2009-06-21 14:08:40 -0700
committerthatch <devnull@localhost>2009-06-21 14:08:40 -0700
commit63336afa0908130b9b6ad42c4e06b78161a0098c (patch)
tree83de61576b2e86f1ad39f89e48f2fc91e61e8cdb /tests/test_examplefiles.py
parent76f192dfa9d79799e87f4ff6061cd6d3511545a5 (diff)
downloadpygments-63336afa0908130b9b6ad42c4e06b78161a0098c.tar.gz
Unbreak examplefile tests with DOS newlines.
This appears to have been broken in the last commit to this file, for Py3k compat in a88f6c3aefe0 by removing universal newline mode.
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index d64756ff..2f6efa21 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -41,6 +41,7 @@ def test_example_files():
def check_lexer(lx, absfn):
text = open(absfn, 'rb').read()
+ text = text.replace(b('\r\n'), b('\n'))
text = text.strip(b('\n')) + b('\n')
try:
text = text.decode('utf-8')