diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-31 21:51:22 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-31 21:51:22 (GMT) |
commit | d28c5f00efd0502ca1efa020807537fd7fc20ac1 (patch) | |
tree | 53bfc7e747a39c282b6d9e9d618c8024dccd7300 /Lib/distutils | |
parent | 47f44c930901f5fc155aa15c6ec59bbb23b37279 (diff) | |
download | cpython-d28c5f00efd0502ca1efa020807537fd7fc20ac1.zip cpython-d28c5f00efd0502ca1efa020807537fd7fc20ac1.tar.gz cpython-d28c5f00efd0502ca1efa020807537fd7fc20ac1.tar.bz2 |
#22315: Use an existent directory for 'src' to trigger appropriate behavior.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_dir_util.py | 3 |
1 files changed, 2 insertions, 1 deletions
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(): |