Fix #9513 to remove relative imports from multiprocessing.
The test suite currently skips test_multiprocessing on Windows
because it fails on finding _multiprocessing in several
win32-specific blocks. Removing the relative import lets this
through and allows the test to run (and pass).
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py
index b632e93..7d565a7 100644
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -173,7 +173,7 @@
else:
- from ._multiprocessing import win32
+ from _multiprocessing import win32
def Pipe(duplex=True):
'''
diff --git a/Lib/multiprocessing/forking.py b/Lib/multiprocessing/forking.py
index 5d66fa3..a7e8eb7 100644
--- a/Lib/multiprocessing/forking.py
+++ b/Lib/multiprocessing/forking.py
@@ -157,7 +157,7 @@
import time
from pickle import dump, load, HIGHEST_PROTOCOL
- from ._multiprocessing import win32, Connection, PipeConnection
+ from _multiprocessing import win32, Connection, PipeConnection
from .util import Finalize
def dump(obj, file, protocol=None):
diff --git a/Lib/multiprocessing/heap.py b/Lib/multiprocessing/heap.py
index ab6cf16..5d27b27 100644
--- a/Lib/multiprocessing/heap.py
+++ b/Lib/multiprocessing/heap.py
@@ -26,7 +26,7 @@
if sys.platform == 'win32':
- from ._multiprocessing import win32
+ from _multiprocessing import win32
class Arena(object):
diff --git a/Lib/multiprocessing/reduction.py b/Lib/multiprocessing/reduction.py
index 1813729..60e7151 100644
--- a/Lib/multiprocessing/reduction.py
+++ b/Lib/multiprocessing/reduction.py
@@ -34,7 +34,7 @@
if sys.platform == 'win32':
import _subprocess
- from ._multiprocessing import win32
+ from _multiprocessing import win32
def send_handle(conn, handle, destination_pid):
process_handle = win32.OpenProcess(