summaryrefslogtreecommitdiff
path: root/tests/regressiontests/utils
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-22 19:48:36 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-22 19:48:36 +0000
commitc5a76a366970dc1305bb638ed6bd070d0a86376c (patch)
tree7e8d9ff2c54bacf8c75044d44d92677be6e2b092 /tests/regressiontests/utils
parentd1ea8b2842a9d1fd54c799e9f374d6b53931942e (diff)
Fixed a bunch of Python 2.3 test failures.
All remaining buildbot failures on 2.3 are not due to the test suite, as far as I can work out. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/utils')
-rw-r--r--tests/regressiontests/utils/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regressiontests/utils/tests.py b/tests/regressiontests/utils/tests.py
index cd4762e02f..485c5faa75 100644
--- a/tests/regressiontests/utils/tests.py
+++ b/tests/regressiontests/utils/tests.py
@@ -11,6 +11,13 @@ import datastructures
import itercompat
from decorators import DecoratorFromMiddlewareTests
+# We need this because "datastructures" uses sorted() and the tests are run in
+# the scope of this module.
+try:
+ sorted
+except NameError:
+ from django.utils.itercompat import sorted # For Python 2.3
+
# Extra tests
__test__ = {
'timesince': timesince,