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
This commit is contained in:
Malcolm Tredinnick 2008-07-22 19:48:36 +00:00
parent d1ea8b2842
commit c5a76a3669
3 changed files with 16 additions and 5 deletions

View file

@ -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,