File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def test_cp12907(self):
8787 #from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT
8888 from os import unlink
8989
90- f_name = "fake_stdout.txt"
90+ f_name = os . path . join ( self . temporary_dir , "fake_stdout.txt" )
9191 test_list = [
9292 ("print(1)" ,
9393 "single" , ["1\n " ]),
@@ -146,7 +146,7 @@ def test_cp12009(self):
146146 import os
147147 import shutil
148148
149- dir1 = "temp_test_stdmodules_dir"
149+ dir1 = os . path . join ( self . temporary_dir , "temp_test_stdmodules_dir" )
150150 dir2 = dir1 + "2"
151151
152152 os .mkdir (dir1 )
@@ -242,9 +242,12 @@ def test_cp20603(self):
242242
243243 def test_cp21929 (self ):
244244 import os
245+ save_dir = os .getcwd ()
246+ os .chdir (".." ) # other tests run in parallel are creating/deleting files in "."
245247 self .assertEqual (os .listdir ("." ),
246248 os .listdir (os .getcwd ()))
247249 self .assertRaises (WindowsError , os .listdir , "" )
250+ os .chdir (save_dir )
248251
249252 def test_cp34188 (self ):
250253 import locale
You can’t perform that action at this time.
0 commit comments