#22315: Use an existent directory for 'src' to trigger appropriate behavior.

This commit is contained in:
Jason R. Coombs 2014-08-31 17:51:22 -04:00
parent 47f44c9309
commit d28c5f00ef
1 changed files with 2 additions and 1 deletions

View 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():