[Python-checkins] python/dist/src/Lib/test test_shutil.py,1.3,1.4
gvanrossum at users.sourceforge.net
gvanrossum at users.sourceforge.net
Wed Jul 14 02:48:34 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv688
Modified Files:
test_shutil.py
Log Message:
- 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???]
Index: test_shutil.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_shutil.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_shutil.py 19 Jun 2004 21:11:35 -0000 1.3
--- test_shutil.py 14 Jul 2004 00:48:32 -0000 1.4
***************
*** 14,17 ****
--- 14,18 ----
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):
More information about the Python-checkins
mailing list