diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-04-22 00:00:19 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-04-22 00:00:19 +0000 |
| commit | c8576fa674c4a252e258042de05b3f41cdec241a (patch) | |
| tree | 36446cf0c34367a506555a8b46d15df1a9229e08 /tests | |
| parent | af48cad39e7aac02ab5c7120b4509abd4b1941cd (diff) | |
[1.1.X] Python 2.3 compatibility: we still need the special sets import here.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/introspection/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/introspection/tests.py b/tests/regressiontests/introspection/tests.py index 394ebcb636..1d6910d92c 100644 --- a/tests/regressiontests/introspection/tests.py +++ b/tests/regressiontests/introspection/tests.py @@ -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 |
