diff options
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. |
