Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Refs #17365, #17366, #18727.
  • Loading branch information...
commit e23a5f9a4730ddecb8f3950ee2936716f458c506 1 parent 9012833
@apollo13 apollo13 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 tests/runtests.py
View
7 tests/runtests.py
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.