summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
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 41acf4ef..1d3515df 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -54,6 +54,7 @@ def check_lexer(lx, absfn, outfn):
text = fp.read()
finally:
fp.close()
+ text = text.lstrip(u'\xef\xbb\xbf\ufeff') #remove BOM
text = text.replace(b('\r\n'), b('\n'))
text = text.strip(b('\n')) + b('\n')
try: