Refs #35844 -- Checked for forkserver mode when running runtests.py with --selenium and --parallel.

This commit is contained in:
Jacob Walls 2025-11-11 16:36:49 -05:00
parent 6821a7c990
commit c60a708b58

View file

@ -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."