mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
Refs #32609 -- Simplified test_labels_set construction in runtests.py's setup().
Follow up to 7cf3a5786b.
This commit is contained in:
parent
a41ed8f1b9
commit
413c15ef2e
1 changed files with 3 additions and 3 deletions
|
|
@ -133,11 +133,11 @@ def get_installed():
|
|||
|
||||
|
||||
def setup(verbosity, test_labels, start_at, start_after):
|
||||
# Reduce the given test labels to just the app module path.
|
||||
# Reduce each test label to just the top-level module part.
|
||||
test_labels_set = set()
|
||||
for label in test_labels:
|
||||
bits = label.split('.')[:1]
|
||||
test_labels_set.add('.'.join(bits))
|
||||
test_module = label.split('.')[0]
|
||||
test_labels_set.add(test_module)
|
||||
|
||||
# Force declaring available_apps in TransactionTestCase for faster tests.
|
||||
def no_available_apps(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue