@@ -216,7 +216,7 @@ def find_tests(self, tests):
216216 # regex to match 'test_builtin' in line:
217217 # '0:00:00 [ 4/400] test_builtin -- test_dict took 1 sec'
218218 regex = re .compile (r'\btest_[a-zA-Z0-9_]+\b' )
219- with open (os .path .join (support .SAVEDCWD , self .ns .fromfile )) as fp :
219+ with open (os .path .join (os_helper .SAVEDCWD , self .ns .fromfile )) as fp :
220220 for line in fp :
221221 line = line .split ('#' , 1 )[0 ]
222222 line = line .strip ()
@@ -559,7 +559,7 @@ def save_xml_result(self):
559559 for k , v in totals .items ():
560560 root .set (k , str (v ))
561561
562- xmlpath = os .path .join (support .SAVEDCWD , self .ns .xmlpath )
562+ xmlpath = os .path .join (os_helper .SAVEDCWD , self .ns .xmlpath )
563563 with open (xmlpath , 'wb' ) as f :
564564 for s in ET .tostringlist (root ):
565565 f .write (s )
@@ -597,7 +597,7 @@ def create_temp_dir(self):
597597 test_cwd = 'test_python_worker_{}' .format (pid )
598598 else :
599599 test_cwd = 'test_python_{}' .format (pid )
600- test_cwd += support .FS_NONASCII
600+ test_cwd += os_helper .FS_NONASCII
601601 test_cwd = os .path .join (self .tmp_dir , test_cwd )
602602 return test_cwd
603603
@@ -609,10 +609,10 @@ def cleanup(self):
609609 for name in glob .glob (path ):
610610 if os .path .isdir (name ):
611611 print ("Remove directory: %s" % name )
612- support .rmtree (name )
612+ os_helper .rmtree (name )
613613 else :
614614 print ("Remove file: %s" % name )
615- support .unlink (name )
615+ os_helper .unlink (name )
616616
617617 def main (self , tests = None , ** kwargs ):
618618 self .parse_args (kwargs )
@@ -629,7 +629,7 @@ def main(self, tests=None, **kwargs):
629629 # Run the tests in a context manager that temporarily changes the CWD
630630 # to a temporary and writable directory. If it's not possible to
631631 # create or change the CWD, the original CWD will be used.
632- # The original CWD is available from support .SAVEDCWD.
632+ # The original CWD is available from os_helper .SAVEDCWD.
633633 with os_helper .temp_cwd (test_cwd , quiet = True ):
634634 # When using multiprocessing, worker processes will use test_cwd
635635 # as their parent temporary directory. So when the main process
0 commit comments