summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2004-07-14 00:48:58 +0000
committerGuido van Rossum <guido@python.org>2004-07-14 00:48:58 +0000
commit8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf (patch)
tree30da3d0be90b16171fa6ed71a27f9951b90398ac /Lib/test
parent4a2ccdf781b1648f34f303ee3d411d63c306e17e (diff)
downloadcpython-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.py1
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()