summaryrefslogtreecommitdiff
path: root/simplejson/tests/test_errors.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-04-24 20:33:09 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2018-04-24 20:33:09 +0300
commit51b69877435b8503b0400eb54461cded7f103ecb (patch)
tree758e02aac0991f7b220d0e50039b6f3358943122 /simplejson/tests/test_errors.py
parent729945a655b2c351ad4c91293a494c066f3bb152 (diff)
downloadsimplejson-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_errors.py')
-rw-r--r--simplejson/tests/test_errors.py4
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: