Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/sage/doctest/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
# With OS X, Python 3.8 defaults to use 'spawn' instead of 'fork' in
# multiprocessing, and Sage doctesting doesn't work with 'spawn'. See
# trac #27754.
if platform.system() == 'Darwin':
multiprocessing.set_start_method('fork', force=True)
# With Python 3.14, the default changed to 'forkserver' on Linux as well.
# Sage doctesting requires 'fork' method.
multiprocessing.set_start_method('fork', force=True)
Array = multiprocessing.Array

# Functions in this module whose name is of the form 'has_xxx' tests if the
Expand Down
5 changes: 3 additions & 2 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@
# With OS X, Python 3.8 defaults to use 'spawn' instead of 'fork' in
# multiprocessing, and Sage doctesting doesn't work with 'spawn'. See
# trac #27754.
if platform.system() == 'Darwin':
multiprocessing.set_start_method('fork', force=True)
# With Python 3.14, the default changed to 'forkserver' on Linux as well.
# Sage doctesting requires 'fork' method.
multiprocessing.set_start_method('fork', force=True)


def _sorted_dict_pprinter_factory(start, end):
Expand Down
Loading