Simplified for loop in reorder_suite().

This commit is contained in:
Chris Jerdonek 2021-03-04 22:28:37 -08:00 committed by GitHub
parent 7d68fa4ed3
commit b190419278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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