diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-05-04 14:00:30 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-05-04 14:00:30 +0000 |
| commit | 5211f48ae3cc0d87a260dbf5c3ab8bdae664c4b6 (patch) | |
| tree | 2b50ac06dd30395e53e7649d2a813927ccaeed94 /django/test/simple.py | |
| parent | 7202eb8e3194c6d9c52780526871018205bd0858 (diff) | |
Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/test/simple.py')
| -rw-r--r-- | django/test/simple.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/test/simple.py b/django/test/simple.py index 0fc154fed1..9013042e66 100644 --- a/django/test/simple.py +++ b/django/test/simple.py @@ -185,14 +185,6 @@ def build_test(label): # Construct a suite out of the tests that matched. return unittest.TestSuite(tests) -# Python 2.3 compatibility: TestSuites were made iterable in 2.4. -# We need to iterate over them, so we add the missing method when -# necessary. -try: - getattr(unittest.TestSuite, '__iter__') -except AttributeError: - setattr(unittest.TestSuite, '__iter__', lambda s: iter(s._tests)) - def partition_suite(suite, classes, bins): """ Partitions a test suite by test type. |
