Kaydet (Commit) cde0fa9c authored tarafından Neal Norwitz's avatar Neal Norwitz

Don't fail if the directory already exists

üst b59d08c2
import os, filecmp, shutil, tempfile
import os, filecmp, shutil, tempfile, shutil
import unittest
from test import test_support
......@@ -49,6 +49,7 @@ class DirCompareTestCase(unittest.TestCase):
self.caseinsensitive = os.path.normcase('A') == os.path.normcase('a')
data = 'Contents of file go here.\n'
for dir in [self.dir, self.dir_same, self.dir_diff]:
shutil.rmtree(dir, True)
os.mkdir(dir)
if self.caseinsensitive and dir is self.dir_same:
fn = 'FiLe' # Verify case-insensitive comparison
......
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