mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Merge 3.2: test_multiprocessing removes temporary files
This commit is contained in:
commit
4ad6ed7d4d
1 changed files with 2 additions and 0 deletions
|
|
@ -1646,6 +1646,7 @@ class _TestConnection(BaseTestCase):
|
||||||
p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
|
p = self.Process(target=self._writefd, args=(child_conn, b"foo"))
|
||||||
p.daemon = True
|
p.daemon = True
|
||||||
p.start()
|
p.start()
|
||||||
|
self.addCleanup(test.support.unlink, test.support.TESTFN)
|
||||||
with open(test.support.TESTFN, "wb") as f:
|
with open(test.support.TESTFN, "wb") as f:
|
||||||
fd = f.fileno()
|
fd = f.fileno()
|
||||||
if msvcrt:
|
if msvcrt:
|
||||||
|
|
@ -1671,6 +1672,7 @@ class _TestConnection(BaseTestCase):
|
||||||
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
|
p = self.Process(target=self._writefd, args=(child_conn, b"bar", True))
|
||||||
p.daemon = True
|
p.daemon = True
|
||||||
p.start()
|
p.start()
|
||||||
|
self.addCleanup(test.support.unlink, test.support.TESTFN)
|
||||||
with open(test.support.TESTFN, "wb") as f:
|
with open(test.support.TESTFN, "wb") as f:
|
||||||
fd = f.fileno()
|
fd = f.fileno()
|
||||||
for newfd in range(256, MAXFD):
|
for newfd in range(256, MAXFD):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue