diff --git a/django/test/testcases.py b/django/test/testcases.py index b891813a9e..adae5d4494 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -14,6 +14,11 @@ from django.test.client import Client from django.utils import simplejson from django.utils.encoding import smart_str +try: + all +except NameError: + from django.utils.itercompat import all + normalize_long_ints = lambda s: re.sub(r'(?