Ticket #6168: runtests_bug.2.diff
File runtests_bug.2.diff, 903 bytes (added by , 17 years ago) |
---|
-
tests/runtests.py
118 118 get_apps() 119 119 120 120 # Load all the test model apps. 121 test_models = []122 121 for model_dir, model_name in get_test_models(): 123 122 model_label = '.'.join([model_dir, model_name]) 124 123 try: … … 142 141 model_label = '.'.join([model_dir, model_name]) 143 142 if not test_labels or model_name in test_labels: 144 143 extra_tests.append(InvalidModelTestCase(model_label)) 144 145 # "invalid_models" is not an app, so we cannot pass it in with the other 146 # test_labels 147 try: 148 test_labels.remove("invalid_models") 149 except ValueError: 150 pass 145 151 146 152 # Run the test suite, including the extra validation tests. 147 153 from django.test.simple import run_tests