summaryrefslogtreecommitdiff
path: root/tests/test_examplefiles.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-09 12:26:50 +0100
committerGeorg Brandl <georg@python.org>2013-01-09 12:26:50 +0100
commit68a10f38d3814e2292849306a815387c6259ce06 (patch)
treec4e686a0b5ef7f08f1bef6b33eedf0bc16d7f47f /tests/test_examplefiles.py
parent2ca4dbd36a06c8f7d2d6f349f5921d558c138b19 (diff)
parente9e7db92d57ea2ab45b1094a48168b0d7e5a72a3 (diff)
downloadpygments-68a10f38d3814e2292849306a815387c6259ce06.tar.gz
Merged in gentoo90/pygments-main/nsis (pull request #136: Add NSIS script lexer)
Diffstat (limited to 'tests/test_examplefiles.py')
-rw-r--r--tests/test_examplefiles.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_examplefiles.py b/tests/test_examplefiles.py
index 41acf4ef..a938ebaa 100644
--- a/tests/test_examplefiles.py
+++ b/tests/test_examplefiles.py
@@ -58,6 +58,8 @@ def check_lexer(lx, absfn, outfn):
text = text.strip(b('\n')) + b('\n')
try:
text = text.decode('utf-8')
+ if text.startswith(u'\ufeff'):
+ text = text[len(u'\ufeff'):]
except UnicodeError:
text = text.decode('latin1')
ntext = []