1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed runtests.py problem from [3177] where it assumed you were running the tests from within the tests directory

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-06-20 14:27:44 +00:00
parent 5f47161831
commit 0e92f70602

View File

@ -35,8 +35,8 @@ ALWAYS_INSTALLED_APPS = [
def get_test_models():
models = []
for loc in MODEL_TESTS_DIR_NAME, REGRESSION_TESTS_DIR_NAME:
for f in os.listdir(loc):
for loc, dirpath in (MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR):
for f in os.listdir(dirpath):
if f.startswith('__init__') or f.startswith('.') or f.startswith('sql'):
continue
models.append((loc, f))