diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-10 12:03:47 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-11 12:05:55 -0500 |
| commit | 411028df534934ca7bc95335fcb5b0e26df931d6 (patch) | |
| tree | 5bab28e0ef973421049afa6d8a8d3cee66f04393 /tests | |
| parent | 69c89aeccf31c5ea10ffc546f5d499bcb4d719de (diff) | |
[1.8.x] Updated docs and runtests.py for removal of tests from contrib.
Backport of 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0 from master
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/runtests.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index b0f8afe8a2..8ee71d6f9c 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -9,7 +9,6 @@ import warnings from argparse import ArgumentParser import django -from django import contrib from django.apps import apps from django.conf import settings from django.db import connection @@ -24,9 +23,6 @@ from django.utils.deprecation import ( warnings.simplefilter("error", RemovedInDjango19Warning) warnings.simplefilter("error", RemovedInDjango20Warning) -CONTRIB_MODULE_PATH = 'django.contrib' - -CONTRIB_DIR = os.path.dirname(upath(contrib.__file__)) RUNTESTS_DIR = os.path.abspath(os.path.dirname(upath(__file__))) TEMPLATE_DIR = os.path.join(RUNTESTS_DIR, 'templates') @@ -74,7 +70,6 @@ def get_test_modules(): modules = [] discovery_paths = [ (None, RUNTESTS_DIR), - (CONTRIB_MODULE_PATH, CONTRIB_DIR) ] # GIS tests are in nested apps if connection.features.gis_enabled: @@ -179,11 +174,7 @@ def setup(verbosity, test_labels): # Reduce given test labels to just the app module path test_labels_set = set() for label in test_labels: - bits = label.split('.') - if bits[:2] == ['django', 'contrib']: - bits = bits[:3] - else: - bits = bits[:1] + bits = label.split('.')[:1] test_labels_set.add('.'.join(bits)) installed_app_names = set(get_installed()) |
