
For reference, this is the result of running the regression tests of the official Python 2.5.1 (final) on Win98. I think I saw it in the installtion screen that Python 2.5 is the last release to support Win98. Even though the unicode tests failing might be expected, what interested me was the fact that test_1565150 of test_os failed. Details follow. 259 tests OK. 8 tests failed: test_anydbm test_bsddb test_mailbox test_os test_shelve test_unicode_file test_uuid test_whichdb 54 tests skipped: test__locale test_aepack test_al test_applesingle test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_commands test_crypt test_curses test_dbm test_dl test_fcntl test_fork1 test_gdbm test_gl test_grp test_imgfile test_ioctl test_largefile test_linuxaudiodev test_macfs test_macostools test_mhlib test_nis test_normalization test_openpty test_ossaudiodev test_pep277 test_plistlib test_poll test_posix test_pty test_pwd test_resource test_scriptpackages test_signal test_socket_ssl test_socketserver test_sunaudiodev test_tcl test_threadsignals test_timeout test_urllib2net test_urllibnet test_wait3 test_wait4 test_zipfile64 1 skip unexpected on win32: test_tcl find_library('c') -> None find_library('m') -> None a DOS box should flash briefly ... $ python -i Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
====================================================================== FAIL: test_1565150 (test.test_os.StatAttributeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "G:\GMISC\PY25\lib\test\test_os.py", line 232, in test_1565150 self.assertEquals(os.stat(self.fname).st_mtime, t1) AssertionError: 1159195040.0 != 1159195039.25 ---------------------------------------------------------------------- Ran 34 tests in 0.440s FAILED (failures=1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "G:\GMISC\PY25\lib\test\test_os.py", line 434, in test_main Win32ErrorTests File "G:\GMISC\PY25\lib\test\test_support.py", line 441, in run_unittest run_suite(suite, testclass) File "G:\GMISC\PY25\lib\test\test_support.py", line 426, in run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "G:\GMISC\PY25\lib\test\test_os.py", line 232, in test_1565150 self.assertEquals(os.stat(self.fname).st_mtime, t1) AssertionError: 1159195040.0 != 1159195039.25
Regards, Khalid __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Khalid A. Bakr schrieb:
Ah, ok. This means that the test is bogus. On Win95 (and, strictly speaking, NT+ installed on FAT), the test will certainly fail, because FAT has no subsecond resolution for file modification times (it doesn't even have second resolution - the granularity is 2s). This failure does not bother me much - os.stat itself works just fine on this system. If you want to contribute a patch to skip the test on W9x, please go ahead - but IMO, there is no harm done having this test fail on W9x for the rest of 2.5.x. Regards, Martin

Khalid A. Bakr schrieb:
Ah, ok. This means that the test is bogus. On Win95 (and, strictly speaking, NT+ installed on FAT), the test will certainly fail, because FAT has no subsecond resolution for file modification times (it doesn't even have second resolution - the granularity is 2s). This failure does not bother me much - os.stat itself works just fine on this system. If you want to contribute a patch to skip the test on W9x, please go ahead - but IMO, there is no harm done having this test fail on W9x for the rest of 2.5.x. Regards, Martin
participants (2)
-
"Martin v. Löwis"
-
Khalid A. Bakr