From: Collin Winter Date: Sat, 31 Mar 2007 19:31:34 +0000 (+0000) Subject: Shut up an occaisonal buildbot error due to test files being left around. X-Git-Tag: v2.6a1~1899 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1520fe4e5856ec92fdbff23765ad19159b2f609d;p=python Shut up an occaisonal buildbot error due to test files being left around. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 6d7fe8ec9b..40d7c3e7d3 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -373,6 +373,14 @@ class WalkTests(unittest.TestCase): class MakedirTests (unittest.TestCase): def setUp(self): + try: + os.rmdir(test_support.TESTFN) + except OSError: + pass + try: + os.unlink(test_support.TESTFN) + except OSError: + pass os.mkdir(test_support.TESTFN) def test_makedir(self):