diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-04 22:35:31 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-04 22:35:31 (GMT) |
commit | 32ef169339e131e83289dd8b39f7b89e76db2850 (patch) | |
tree | 0cd4220fdd09a7c38cfb9f6ba2a2f05f180ab0e3 /Lib | |
parent | a30d1447cfb9578ca082d1ef9f8150f66928493f (diff) | |
download | cpython-32ef169339e131e83289dd8b39f7b89e76db2850.zip cpython-32ef169339e131e83289dd8b39f7b89e76db2850.tar.gz cpython-32ef169339e131e83289dd8b39f7b89e76db2850.tar.bz2 |
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>.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_mhlib.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/test_mhlib.py b/Lib/test/test_mhlib.py index 862d301..b258e99 100644 --- a/Lib/test/test_mhlib.py +++ b/Lib/test/test_mhlib.py @@ -12,8 +12,16 @@ import os, StringIO import sys 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 + +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") _mhroot = TESTFN+"_MH" |