Kaydet (Commit) 4ccc0b7d authored tarafından Tim Peters's avatar Tim Peters

test_directory(): Remove the leftover temp directory that's making

the Windows buildbots fail test_tarfile.
üst 12087bae
......@@ -295,6 +295,10 @@ class WriteSize0Test(BaseTest):
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment