Message206659
| Author |
ncoghlan |
| Recipients |
Olivier.Grisel, brett.cannon, christian.heimes, eric.snow, larry, ncoghlan, pitrou, python-dev, sbt, zach.ware |
| Date |
2013年12月20日.01:58:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1387504682.27.0.910992230876.issue19946@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Ah, I should have looked more closely at the docs to see if there was a public API for that before poking around in the package internals.
In that case, I suggest we change this bit in the test:
# We look inside the context module to find out which
# start methods we can check
from multiprocessing.context import _concrete_contexts
to use the appropriate public API:
# Need to know which start methods we should test
import multiprocessing
AVAILABLE_START_METHODS = set(multiprocessing.get_all_start_methods())
And then adjust the skip check to look in AVAILABLE_START_METHODS rather than _concrete_contexts.
I'll make that change tonight if nobody beats me to it. |
|