From d28c5f00efd0502ca1efa020807537fd7fc20ac1 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 31 Aug 2014 17:51:22 -0400 Subject: #22315: Use an existent directory for 'src' to trigger appropriate behavior. --- Lib/distutils/tests/test_dir_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/tests/test_dir_util.py b/Lib/distutils/tests/test_dir_util.py index 51e754a..d2696b8 100644 --- a/Lib/distutils/tests/test_dir_util.py +++ b/Lib/distutils/tests/test_dir_util.py @@ -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(): -- cgit v0.12