summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2021-04-19 02:01:48 -0700
committerGitHub <noreply@github.com>2021-04-19 11:01:48 +0200
commit413c15ef2e3d3958fb641a023bc1e2d15fb2b228 (patch)
treeb40d029d57dd4944a7925e3d80f5b5c53b131289
parenta41ed8f1b9366d8f7224aa952da59795d4b2e9de (diff)
Refs #32609 -- Simplified test_labels_set construction in runtests.py's setup().
Follow up to 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0.
-rwxr-xr-xtests/runtests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index 1a667cbc16..838a48a3d2 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -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):