]> granicus.if.org Git - python/commitdiff
#22315: Use an existent directory for 'src' to trigger appropriate behavior.
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 31 Aug 2014 21:51:22 +0000 (17:51 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 31 Aug 2014 21:51:22 +0000 (17:51 -0400)
Lib/distutils/tests/test_dir_util.py

index 51e754a07e3581d6625480c5940f74bad6f25a10..d2696b822c8e9e061fae125920308179e1d78c7f 100644 (file)
@@ -128,7 +128,8 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
         An exception in listdir should raise a DistutilsFileError
         """
         with self.assertRaises(errors.DistutilsFileError):
-            dir_util.copy_tree(self.target, None)
+            src = self.tempdirs[-1]
+            dir_util.copy_tree(src, None)
 
 
 def test_suite():