diff options
author | Guido van Rossum <guido@python.org> | 2004-07-14 00:48:58 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2004-07-14 00:48:58 +0000 |
commit | 8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf (patch) | |
tree | 30da3d0be90b16171fa6ed71a27f9951b90398ac /Lib/test | |
parent | 4a2ccdf781b1648f34f303ee3d411d63c306e17e (diff) | |
download | cpython-git-8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf.tar.gz |
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
[I could've sworn I checked this in, but apparently I didn't, or it
got lost???]
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_shutil.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 05f34d8466..bcae72f1da 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -13,6 +13,7 @@ class TestShutil(unittest.TestCase): filename = tempfile.mktemp() self.assertRaises(OSError, shutil.rmtree, filename) self.assertEqual(shutil.rmtree(filename, True), None) + shutil.rmtree(filename, False, lambda func, arg, exc: None) def test_dont_move_dir_in_itself(self): src_dir = tempfile.mkdtemp() |