File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 4
4
import errno
5
5
import io
6
6
import multiprocessing
7
+ from multiprocessing .util import _cleanup_tests as multiprocessing_cleanup_tests
7
8
import os
8
9
import pathlib
9
10
import signal
15
16
import unittest
16
17
from unittest import mock
17
18
import warnings
19
+
18
20
from test import support
19
21
from test .support import os_helper
20
22
from test .support import socket_helper
@@ -1903,6 +1905,8 @@ async def test_fork_not_share_event_loop(self):
1903
1905
1904
1906
@hashlib_helper .requires_hashdigest ('md5' )
1905
1907
def test_fork_signal_handling (self ):
1908
+ self .addCleanup (multiprocessing_cleanup_tests )
1909
+
1906
1910
# Sending signal to the forked process should not affect the parent
1907
1911
# process
1908
1912
ctx = multiprocessing .get_context ('fork' )
@@ -1947,6 +1951,8 @@ async def func():
1947
1951
1948
1952
@hashlib_helper .requires_hashdigest ('md5' )
1949
1953
def test_fork_asyncio_run (self ):
1954
+ self .addCleanup (multiprocessing_cleanup_tests )
1955
+
1950
1956
ctx = multiprocessing .get_context ('fork' )
1951
1957
manager = ctx .Manager ()
1952
1958
self .addCleanup (manager .shutdown )
@@ -1964,6 +1970,8 @@ async def child_main():
1964
1970
1965
1971
@hashlib_helper .requires_hashdigest ('md5' )
1966
1972
def test_fork_asyncio_subprocess (self ):
1973
+ self .addCleanup (multiprocessing_cleanup_tests )
1974
+
1967
1975
ctx = multiprocessing .get_context ('fork' )
1968
1976
manager = ctx .Manager ()
1969
1977
self .addCleanup (manager .shutdown )
You can’t perform that action at this time.
0 commit comments