1
0
mirror of https://github.com/django/django.git synced 2025-07-19 09:09:13 +00:00

[1.0.X] Fixed up the tests added for #9779 to run under Python 2.3, which doesn't have set.

Merge of the part of [10392] that applies to the 1.0.X branch.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2009-04-04 19:12:52 +00:00
parent cfe9b6f642
commit 2d20e5265a

View File

@ -5,6 +5,11 @@ from django.utils import functional
from models import Reporter, Article from models import Reporter, Article
try:
set
except NameError:
from sets import Set as set # Python 2.3 fallback
# #
# The introspection module is optional, so methods tested here might raise # The introspection module is optional, so methods tested here might raise
# NotImplementedError. This is perfectly acceptable behavior for the backend # NotImplementedError. This is perfectly acceptable behavior for the backend