summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2004-07-14 00:48:58 (GMT)
committerGuido van Rossum <guido@python.org>2004-07-14 00:48:58 (GMT)
commit8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf (patch)
tree30da3d0be90b16171fa6ed71a27f9951b90398ac /Lib
parent4a2ccdf781b1648f34f303ee3d411d63c306e17e (diff)
downloadcpython-8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf.zip
cpython-8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf.tar.gz
cpython-8cec3ab0e44a65d9bb0b70f6963defd21dbeccbf.tar.bz2
- 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')
-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 05f34d8..bcae72f 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()