summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2015-02-06 20:15:06 -0700
committerCarl Meyer <carl@oddbird.net>2015-02-06 20:15:06 -0700
commit64735731e0fe8292965d98e8a543d98f9d902835 (patch)
treed20fb5ebabd0a5efe5475bf0627563b94835bcf8
parent3b1dc45602d6222c7980cad4b5416cfac1d4710f (diff)
[1.6.x] Fix an encoding preamble so the tests pass on 2.7.9.
It seems there was a change in the parsing of encoding preambles in Python 2.7.9, compared to previous 2.7.x Pythons. This is a backport of the only piece of e520a73eeea6b185b719901ab9985ecef00e5664 that's needed to prevent an import failure under 2.7.9.
-rw-r--r--tests/utils_tests/test_jslex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests/test_jslex.py b/tests/utils_tests/test_jslex.py
index a2af7b4bcf..731884dedb 100644
--- a/tests/utils_tests/test_jslex.py
+++ b/tests/utils_tests/test_jslex.py
@@ -1,5 +1,5 @@
-"""Tests for jslex."""
# encoding: utf-8
+"""Tests for jslex."""
# originally from https://bitbucket.org/ned/jslex
from django.test import TestCase