Commit 58b1aba4 authored by Jason R. Coombs's avatar Jason R. Coombs

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

parent 3896d0af
......@@ -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():
......
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