]> granicus.if.org Git - python/commitdiff
Another fix for test_shutil. Martin pointed out that it breaks some build bots
authorChristian Heimes <christian@cheimes.de>
Tue, 20 Nov 2007 03:20:04 +0000 (03:20 +0000)
committerChristian Heimes <christian@cheimes.de>
Tue, 20 Nov 2007 03:20:04 +0000 (03:20 +0000)
Lib/test/test_shutil.py

index 56e928e436f943288ab124b04dba02c05e3b4555..ee15d0e195626a6c6d39d99908f744bcafc40cae 100644 (file)
@@ -113,7 +113,9 @@ class TestShutil(unittest.TestCase):
                 ):
                 if os.path.exists(path):
                     os.remove(path)
-            for path in (src_dir, os.path.join(dst_dir, os.path.pardir)):
+            for path in (src_dir,
+                    os.path.abspath(os.path.join(dst_dir, os.path.pardir))
+                ):
                 if os.path.exists(path):
                     shutil.rmtree(path)