diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-04-29 19:58:00 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-04-29 19:58:00 +0200 |
| commit | cec6bd5a59547dc97fe98975c570fc27a1e970be (patch) | |
| tree | d084ff2008e4bba125c4b28297d6469992f2ec95 /django/test | |
| parent | ee0a7c741e98214bac7eeb60b848cf099ff28836 (diff) | |
Fixed #18023 -- Removed bundled simplejson.
And started the deprecation path for django.utils.simplejson.
Thanks Alex Ogier, Clueless, and other contributors for their
work on the patch.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/testcases.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index d9048be98b..b923bde139 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -1,4 +1,5 @@ import difflib +import json import os import re import sys @@ -33,7 +34,7 @@ from django.test.signals import template_rendered from django.test.utils import (get_warnings_state, restore_warnings_state, override_settings) from django.test.utils import ContextList -from django.utils import simplejson, unittest as ut2 +from django.utils import unittest as ut2 from django.utils.encoding import smart_str, force_unicode from django.utils.unittest.util import safe_repr from django.views.static import serve @@ -189,8 +190,8 @@ class OutputChecker(doctest.OutputChecker): """ want, got = self._strip_quotes(want, got) try: - want_json = simplejson.loads(want) - got_json = simplejson.loads(got) + want_json = json.loads(want) + got_json = json.loads(got) except Exception: return False return want_json == got_json |
