1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed a regression in the test runner loading of runtests.py.

Refs #17365, #17366, #18727.
This commit is contained in:
Florian Apolloner 2013-05-11 15:47:40 +02:00
parent 9012833af8
commit e23a5f9a47

View File

@ -167,9 +167,12 @@ def django_tests(verbosity, interactive, failfast, test_labels):
extra_tests = []
# Run the test suite, including the extra validation tests.
from django.test.runner import DiscoverRunner
from django.test.utils import get_runner
if not hasattr(settings, 'TEST_RUNNER'):
settings.TEST_RUNNER = 'django.test.runner.DiscoverRunner'
TestRunner = get_runner(settings)
test_runner = DiscoverRunner(
test_runner = TestRunner(
verbosity=verbosity,
interactive=interactive,
failfast=failfast,