mirror of
https://github.com/django/django.git
synced 2025-11-18 02:56:45 +00:00
Refs #35844 -- Checked for forkserver mode when running runtests.py with --selenium and --parallel.
This commit is contained in:
parent
6821a7c990
commit
c60a708b58
1 changed files with 4 additions and 1 deletions
|
|
@ -746,7 +746,10 @@ if __name__ == "__main__":
|
|||
options.settings = os.environ["DJANGO_SETTINGS_MODULE"]
|
||||
|
||||
if options.selenium:
|
||||
if multiprocessing.get_start_method() == "spawn" and options.parallel != 1:
|
||||
if (
|
||||
multiprocessing.get_start_method() in {"spawn", "forkserver"}
|
||||
and options.parallel != 1
|
||||
):
|
||||
parser.error(
|
||||
"You cannot use --selenium with parallel tests on this system. "
|
||||
"Pass --parallel=1 to use --selenium."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue