summaryrefslogtreecommitdiff
path: root/django/test/runner.py
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2021-03-04 22:28:37 -0800
committerGitHub <noreply@github.com>2021-03-05 07:28:37 +0100
commitb19041927883123e0147d80b820ddabee9a716f6 (patch)
tree490ca74743345be02ba208e63bd3c778a2e5c943 /django/test/runner.py
parent7d68fa4ed309a4bc13d3c8cd4b407b8915c34be8 (diff)
downloaddjango-b19041927883123e0147d80b820ddabee9a716f6.tar.gz
Simplified for loop in reorder_suite().
Diffstat (limited to 'django/test/runner.py')
-rw-r--r--django/test/runner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/test/runner.py b/django/test/runner.py
index ff646b7692..db7628df4c 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -784,8 +784,8 @@ def reorder_suite(suite, classes, reverse=False):
bins = [OrderedSet() for i in range(class_count + 1)]
partition_suite_by_type(suite, classes, bins, reverse=reverse)
reordered_suite = suite_class()
- for i in range(class_count + 1):
- reordered_suite.addTests(bins[i])
+ for tests in bins:
+ reordered_suite.addTests(tests)
return reordered_suite