diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-04-24 20:33:09 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-04-24 20:33:09 +0300 |
commit | 51b69877435b8503b0400eb54461cded7f103ecb (patch) | |
tree | 758e02aac0991f7b220d0e50039b6f3358943122 /simplejson/tests/test_str_subclass.py | |
parent | 729945a655b2c351ad4c91293a494c066f3bb152 (diff) | |
download | simplejson-compat.tar.gz |
Simplify compatibility code.compat
Since minimal supported Python 3 version is 3.3, the u() helper
no longer needed.
Diffstat (limited to 'simplejson/tests/test_str_subclass.py')
-rw-r--r-- | simplejson/tests/test_str_subclass.py | 4 |
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)))) |