[Python-checkins] CVS: python/dist/src/Lib/test test_mailbox.py,1.2,1.3

Guido van Rossum gvanrossum@users.sourceforge.net
2001年4月10日 08:01:22 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv14359
Modified Files:
	test_mailbox.py 
Log Message:
Some other tests, when failing, don't always remove their TESTFN file.
Try to do it for them, so our mkdir() operation doesn't fail.
Index: test_mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mailbox.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** test_mailbox.py	2001年03月02日 05:46:17	1.2
--- test_mailbox.py	2001年04月10日 15:01:20	1.3
***************
*** 3,6 ****
--- 3,12 ----
 import test_support
 
+ # cleanup
+ try:
+ os.unlink(test_support.TESTFN)
+ except os.error:
+ pass
+ 
 # create a new maildir mailbox to work with:
 curdir = os.path.join(test_support.TESTFN, "cur")

AltStyle によって変換されたページ (->オリジナル) /