diff options
Diffstat (limited to 'simplejson/tests/test_errors.py')
-rw-r--r-- | simplejson/tests/test_errors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simplejson/tests/test_errors.py b/simplejson/tests/test_errors.py index 78f25a5..d573825 100644 --- a/simplejson/tests/test_errors.py +++ b/simplejson/tests/test_errors.py @@ -2,7 +2,7 @@ import sys, pickle from unittest import TestCase import simplejson as json -from simplejson.compat import u, b +from simplejson.compat import text_type, b class TestErrors(TestCase): def test_string_keys_error(self): @@ -41,7 +41,7 @@ class TestErrors(TestCase): def test_scan_error(self): err = None - for t in (u, b): + for t in (text_type, b): try: json.loads(t('{"asdf": "')) except json.JSONDecodeError: |