mirror of
https://github.com/django/django.git
synced 2025-09-22 10:12:43 +00:00
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:
parent
d1ea8b2842
commit
c5a76a3669
3 changed files with 16 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue