summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-06 12:43:24 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-06 12:43:24 (GMT)
commit5bb9a8f237d3f45e930a9a10ac0ca9c35906992a (patch)
tree60c39afd9d4150a8aa1abb4233413bf53d187926 /Lib
parent6c64cc197309eb70593b5a5819ddc3eb859077ba (diff)
downloadcpython-5bb9a8f237d3f45e930a9a10ac0ca9c35906992a.zip
cpython-5bb9a8f237d3f45e930a9a10ac0ca9c35906992a.tar.gz
cpython-5bb9a8f237d3f45e930a9a10ac0ca9c35906992a.tar.bz2
Remove a couple of local imports.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_multiprocessing.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 07843f9..0db6352 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -2494,15 +2494,14 @@ class TestWait(unittest.TestCase):
w.close()
def test_wait(self, slow=False):
- from multiprocessing import Pipe, Process
from multiprocessing.connection import wait
readers = []
procs = []
messages = []
for i in range(4):
- r, w = Pipe(duplex=False)
- p = Process(target=self._child_test_wait, args=(w, slow))
+ r, w = multiprocessing.Pipe(duplex=False)
+ p = multiprocessing.Process(target=self._child_test_wait, args=(w, slow))
p.daemon = True
p.start()
w.close()
@@ -2535,7 +2534,6 @@ class TestWait(unittest.TestCase):
s.close()
def test_wait_socket(self, slow=False):
- from multiprocessing import Process
from multiprocessing.connection import wait
l = socket.socket()
l.bind(('', 0))
@@ -2546,7 +2544,8 @@ class TestWait(unittest.TestCase):
dic = {}
for i in range(4):
- p = Process(target=self._child_test_wait_socket, args=(addr, slow))
+ p = multiprocessing.Process(target=self._child_test_wait_socket,
+ args=(addr, slow))
p.daemon = True
p.start()
procs.append(p)