[Python-checkins] python/dist/src/Lib/test test_mhlib.py,1.8,1.9

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2002年8月04日 15:35:33 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv5856/python/Lib/test
Modified Files:
	test_mhlib.py 
Log Message:
Finally got around to figuring out and documenting why this test fails
on Windows. The test_sequence() ERROR is easily repaired if we're
willing to add an os.unlink() line to mhlib's updateline(). The
test_listfolders FAIL I gave up on -- I don't remember enough about Unix
link esoterica to recall why a link count of 2 is something a well-
written program should be keenly interested in <wink>.
Index: test_mhlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mhlib.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_mhlib.py	23 Jul 2002 19:03:57 -0000	1.8
--- test_mhlib.py	4 Aug 2002 22:35:31 -0000	1.9
***************
*** 13,18 ****
 import mhlib
 
! if sys.platform.startswith("win") or sys.platform=="riscos" or sys.platform.startswith("atheos"):
! raise TestSkipped("test_mhlib skipped on %s -- "%sys.platform +
 "too many Unix assumptions")
 
--- 13,26 ----
 import mhlib
 
! if (sys.platform.startswith("win") or sys.platform=="riscos" or
! sys.platform.startswith("atheos"):
! # mhlib.updateline() renames a file to the name of a file that already
! # exists. That causes a reasonable OS <wink> to complain in test_sequence
! # here, like the "OSError: [Errno 17] File exists" raised on Windows.
! # mhlib's listsubfolders() and listallfolders() do something with
! # link counts, and that causes test_listfolders() here to get back
! # an empty list from its call of listallfolders().
! # The other tests here pass on Windows.
! raise TestSkipped("test_mhlib skipped on %s -- " % sys.platform +
 "too many Unix assumptions")
 

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