[Python-checkins] r46009 - python/trunk/Lib/test/test_tarfile.py
tim.peters
python-checkins at python.org
Mon May 15 23:32:25 CEST 2006
Author: tim.peters
Date: Mon May 15 23:32:25 2006
New Revision: 46009
Modified:
python/trunk/Lib/test/test_tarfile.py
Log:
test_directory(): Remove the leftover temp directory that's making
the Windows buildbots fail test_tarfile.
Modified: python/trunk/Lib/test/test_tarfile.py
==============================================================================
--- python/trunk/Lib/test/test_tarfile.py (original)
+++ python/trunk/Lib/test/test_tarfile.py Mon May 15 23:32:25 2006
@@ -295,6 +295,10 @@
def test_directory(self):
path = os.path.join(self.tmpdir, "directory")
+ if os.path.exists(path):
+ # This shouldn't be necessary, but is <wink> if a previous
+ # run was killed in mid-stream.
+ shutil.rmtree(path)
os.mkdir(path)
tarinfo = self.dst.gettarinfo(path)
self.assertEqual(tarinfo.size, 0)
More information about the Python-checkins
mailing list