mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Made sure manage.py help test works.
Thanks shige DOT abe AT nasa DOT gov for the report. Fixes #17477. Refs r16352. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -31,13 +31,16 @@ class Command(BaseCommand):
|
||||
|
||||
requires_model_validation = False
|
||||
|
||||
def __init__(self):
|
||||
self.test_runner = None
|
||||
super(Command, self).__init__()
|
||||
|
||||
def run_from_argv(self, argv):
|
||||
"""
|
||||
Pre-parse the command line to extract the value of the --testrunner
|
||||
option. This allows a test runner to define additional command line
|
||||
arguments.
|
||||
"""
|
||||
self.test_runner = None
|
||||
option = '--testrunner='
|
||||
for arg in argv[2:]:
|
||||
if arg.startswith(option):
|
||||
|
||||
Reference in New Issue
Block a user