Ticket #13345: 13345.diff

File 13345.diff, 1.1 KB (added by Ramiro Morales, 15 years ago)
  • tests/runtests.py

    diff -r 67b28bd4505d tests/runtests.py
    a b  
    2121MODEL_TEST_DIR = os.path.join(os.path.dirname(__file__), MODEL_TESTS_DIR_NAME)
    2222REGRESSION_TEST_DIR = os.path.join(os.path.dirname(__file__), REGRESSION_TESTS_DIR_NAME)
    2323
     24REGRESSION_SUBDIRS_TO_SKIP = ['locale']
     25
    2426ALWAYS_INSTALLED_APPS = [
    2527    'django.contrib.contenttypes',
    2628    'django.contrib.auth',
     
    3739    models = []
    3840    for loc, dirpath in (MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR):
    3941        for f in os.listdir(dirpath):
    40             if f.startswith('__init__') or f.startswith('.') or f.startswith('sql') or f.startswith('invalid'):
     42            if f.startswith('__init__') or f.startswith('.') or \
     43               f.startswith('sql') or f.startswith('invalid') or \
     44               os.path.basename(f) in REGRESSION_SUBDIRS_TO_SKIP:
    4145                continue
    4246            models.append((loc, f))
    4347    return models
Back to Top