File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919import inspect
2020import logging
21+ import os
2122import socket
2223import subprocess
2324import sys
@@ -328,16 +329,16 @@ class PortableRunnerTestWithSubprocessesAndMultiWorkers(
328329 PortableRunnerTestWithSubprocesses ):
329330 _use_subprocesses = True
330331
332+ # TODO(https://github.com/grpc/grpc/issues/37710): Remove once fixed.
331333 @classmethod
332334 def setUpClass (cls ):
333- import os
334335 cls ._old_fork_support = os .environ .get ('GRPC_ENABLE_FORK_SUPPORT' )
335336 os .environ ['GRPC_ENABLE_FORK_SUPPORT' ] = 'false'
336337 super ().setUpClass ()
337338
339+ # TODO(https://github.com/grpc/grpc/issues/37710): Remove once fixed.
338340 @classmethod
339341 def tearDownClass (cls ):
340- import os
341342 if cls ._old_fork_support is None :
342343 os .environ .pop ('GRPC_ENABLE_FORK_SUPPORT' , None )
343344 else :
Original file line number Diff line number Diff line change 3737
3838
3939class JavaJarServerTest (unittest .TestCase ):
40+
41+ # TODO(https://github.com/grpc/grpc/issues/37710): Remove once fixed.
4042 @classmethod
4143 def setUpClass (cls ):
42- import os
4344 cls ._old_fork_support = os .environ .get ('GRPC_ENABLE_FORK_SUPPORT' )
4445 os .environ ['GRPC_ENABLE_FORK_SUPPORT' ] = 'false'
4546 super ().setUpClass ()
4647
48+ # TODO(https://github.com/grpc/grpc/issues/37710): Remove once fixed.
4749 @classmethod
4850 def tearDownClass (cls ):
49- import os
5051 if cls ._old_fork_support is None :
5152 os .environ .pop ('GRPC_ENABLE_FORK_SUPPORT' , None )
5253 else :
You can’t perform that action at this time.
0 commit comments