Removed unused variable in runtests.py.

Unused since 1e72b1c5c1.
This commit is contained in:
Tim Graham 2020-12-07 01:08:27 -05:00 committed by GitHub
parent d8dfff2ab0
commit 406eb43112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -293,13 +293,10 @@ def django_tests(verbosity, interactive, failfast, keepdb, reverse,
test_name_patterns, start_at, start_after, pdb, buffer,
timing):
state = setup(verbosity, test_labels, parallel, start_at, start_after)
extra_tests = []
# Run the test suite, including the extra validation tests.
if not hasattr(settings, 'TEST_RUNNER'):
settings.TEST_RUNNER = 'django.test.runner.DiscoverRunner'
TestRunner = get_runner(settings)
test_runner = TestRunner(
verbosity=verbosity,
interactive=interactive,
@ -315,10 +312,7 @@ def django_tests(verbosity, interactive, failfast, keepdb, reverse,
buffer=buffer,
timing=timing,
)
failures = test_runner.run_tests(
test_labels or get_installed(),
extra_tests=extra_tests,
)
failures = test_runner.run_tests(test_labels or get_installed())
teardown(state)
return failures