]> granicus.if.org Git - python/commitdiff
Try to fix the sporadic problems on the Solaris buildbot with removing
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Aug 2008 01:04:16 +0000 (01:04 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Aug 2008 01:04:16 +0000 (01:04 +0000)
the directories/files.

R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_posix

Lib/test/test_posix.py

index 5b5198d98e759bdbbac361c190d070e8004d79d5..59f8c413b0dd9671b43c7b68eb03dde709a5e51c 100644 (file)
@@ -24,7 +24,7 @@ class PosixTester(unittest.TestCase):
         fp.close()
 
     def tearDown(self):
-        os.unlink(support.TESTFN)
+        support.unlink(support.TESTFN)
 
     def testNoArgFunctions(self):
         # test posix functions which take no arguments and have
@@ -249,7 +249,7 @@ class PosixTester(unittest.TestCase):
                 _create_and_do_getcwd(dirname)
 
             finally:
-                shutil.rmtree(base_path)
+                support.rmtree(base_path)
                 os.chdir(curdir)