Commit 2d20e526 authored by Karen Tracey's avatar Karen Tracey
Browse files

[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
parent cfe9b6f6
Loading
Loading
Loading
Loading
+20 −15
Original line number Diff line number Diff line
@@ -5,6 +5,11 @@ from django.utils import functional

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
# NotImplementedError. This is perfectly acceptable behavior for the backend