diff options
author | Collin Winter <collinw@gmail.com> | 2007-03-31 19:31:34 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-03-31 19:31:34 (GMT) |
commit | 1520fe4e5856ec92fdbff23765ad19159b2f609d (patch) | |
tree | be8e762b172cd79b2e22ce57a940329c7a8d078b /Lib/test/test_os.py | |
parent | db846037607c2598159fac01724390bf40265e12 (diff) | |
download | cpython-1520fe4e5856ec92fdbff23765ad19159b2f609d.zip cpython-1520fe4e5856ec92fdbff23765ad19159b2f609d.tar.gz cpython-1520fe4e5856ec92fdbff23765ad19159b2f609d.tar.bz2 |
Shut up an occaisonal buildbot error due to test files being left around.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 6d7fe8e..40d7c3e 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): |