summaryrefslogtreecommitdiff
path: root/simplejson/tests/test_str_subclass.py
diff options
context:
space:
mode:
Diffstat (limited to 'simplejson/tests/test_str_subclass.py')
-rw-r--r--simplejson/tests/test_str_subclass.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/simplejson/tests/test_str_subclass.py b/simplejson/tests/test_str_subclass.py
index dc87904..b6c8351 100644
--- a/simplejson/tests/test_str_subclass.py
+++ b/simplejson/tests/test_str_subclass.py
@@ -1,7 +1,7 @@
from unittest import TestCase
import simplejson
-from simplejson.compat import text_type, u
+from simplejson.compat import text_type
# Tests for issue demonstrated in https://github.com/simplejson/simplejson/issues/144
class WonkyTextSubclass(text_type):
@@ -10,7 +10,7 @@ class WonkyTextSubclass(text_type):
class TestStrSubclass(TestCase):
def test_dump_load(self):
- for s in ['', '"hello"', 'text', u('\u005c')]:
+ for s in ['', '"hello"', 'text', u'\u005c']:
self.assertEqual(
s,
simplejson.loads(simplejson.dumps(WonkyTextSubclass(s))))