Opened 14 years ago
Last modified 6 months ago
#6755 closed bug
Python's test_os.py fails self.assertEquals(st2.st_mtime, int(st.st_mtime-delta)) — at Version 2
Reported by: | scottmc | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1.1 |
Component: | System | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
These appear to be Haiku related failures.
====================================================================== FAIL: test_utime_dir (__main__.StatAttributeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_os.py", line 349, in test_utime_dir self.assertEquals(st2.st_mtime, int(st.st_mtime-delta)) AssertionError: 1287124148.00734 != 1287124148 ====================================================================== FAIL: test_ttyname (__main__.TestInvalidFD) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_os.py", line 795, in check f(support.make_bad_fd(), *args) OSError: [Errno -2147454966] Not a tty During handling of the above exception, another exception occurred: Traceback (most recent call last): File "test_os.py", line 788, in helper self.check(getattr(os, f)) File "test_os.py", line 797, in check self.assertEqual(e.errno, errno.EBADF) AssertionError: -2147454966 != -2147459072 ====================================================================== FAIL: test_encodings (__main__.FSEncodingTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_os.py", line 1203, in test_encodings check('iso-8859-15', b'\xef\xa4', '\xef\u20ac') File "test_os.py", line 1192, in check self.assertEqual(encoded, repr(bytesfn)) AssertionError: "b'\\xc3\\xaf\\xe2\\x82\\xac'" != "b'\\xef\\xa4'" - b'\xc3\xaf\xe2\x82\xac' + b'\xef\xa4'
Tests are in boot/common/lib/python2.6/test to run use "python test_os.py"
Change History (2)
comment:1 by , 14 years ago
comment:2 by , 13 years ago
Description: | modified (diff) |
---|---|
Summary: | Python3's test_os.py fails 3 tests → Python's test_os.py fails self.assertEquals(st2.st_mtime, int(st.st_mtime-delta)) |
only 1 failure in this test now in hrev42190 alpha3-rc:
/boot/common/lib/python2.6/test> python test_os.py --verbose test_access (__main__.FileTests) ... ok test_closerange (__main__.FileTests) ... ok test_rename (__main__.FileTests) ... ok test_tempnam (__main__.TemporaryFileTests) ... ok test_tmpfile (__main__.TemporaryFileTests) ... ok test_tmpnam (__main__.TemporaryFileTests) ... ok test_stat_attributes (__main__.StatAttributeTests) ... ok test_statvfs_attributes (__main__.StatAttributeTests) ... ok test_utime_dir (__main__.StatAttributeTests) ... FAIL test_bool (__main__.EnvironTests) ... ok test_constructor (__main__.EnvironTests) ... ok test_get (__main__.EnvironTests) ... ok test_getitem (__main__.EnvironTests) ... ok test_items (__main__.EnvironTests) ... ok test_keys (__main__.EnvironTests) ... ok test_len (__main__.EnvironTests) ... ok test_pop (__main__.EnvironTests) ... ok test_popitem (__main__.EnvironTests) ... ok test_read (__main__.EnvironTests) ... ok test_setdefault (__main__.EnvironTests) ... ok test_update (__main__.EnvironTests) ... ok test_update2 (__main__.EnvironTests) ... ok test_values (__main__.EnvironTests) ... ok test_write (__main__.EnvironTests) ... ok test_traversal (__main__.WalkTests) ... ok test_makedir (__main__.MakedirTests) ... ok test_devnull (__main__.DevNullTests) ... ok test_urandom (__main__.URandomTests) ... ok test_closerange (__main__.TestInvalidFD) ... ok test_dup (__main__.TestInvalidFD) ... ok test_dup2 (__main__.TestInvalidFD) ... ok test_fchdir (__main__.TestInvalidFD) ... ok test_fchmod (__main__.TestInvalidFD) ... ok test_fchown (__main__.TestInvalidFD) ... ok test_fdatasync (__main__.TestInvalidFD) ... ok test_fdopen (__main__.TestInvalidFD) ... ok test_fpathconf (__main__.TestInvalidFD) ... ok test_fstat (__main__.TestInvalidFD) ... ok test_fstatvfs (__main__.TestInvalidFD) ... ok test_fsync (__main__.TestInvalidFD) ... ok test_ftruncate (__main__.TestInvalidFD) ... ok test_isatty (__main__.TestInvalidFD) ... ok test_lseek (__main__.TestInvalidFD) ... ok test_read (__main__.TestInvalidFD) ... ok test_tcgetpgrp (__main__.TestInvalidFD) ... ok test_tcsetpgrpt (__main__.TestInvalidFD) ... ok test_ttyname (__main__.TestInvalidFD) ... ok test_write (__main__.TestInvalidFD) ... ok test_setegid (__main__.PosixUidGidTests) ... ok test_seteuid (__main__.PosixUidGidTests) ... ok test_setgid (__main__.PosixUidGidTests) ... ok test_setregid (__main__.PosixUidGidTests) ... ok test_setregid_neg1 (__main__.PosixUidGidTests) ... ok test_setreuid (__main__.PosixUidGidTests) ... ok test_setreuid_neg1 (__main__.PosixUidGidTests) ... ok test_setuid (__main__.PosixUidGidTests) ... ok ====================================================================== FAIL: test_utime_dir (__main__.StatAttributeTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_os.py", line 298, in test_utime_dir self.assertEquals(st2.st_mtime, int(st.st_mtime-delta)) AssertionError: 1307218095.00367 != 1307218095 ---------------------------------------------------------------------- Ran 56 tests in 84.093s FAILED (failures=1) Traceback (most recent call last): File "test_os.py", line 690, in <module> test_main() File "test_os.py", line 686, in test_main PosixUidGidTests File "/boot/common/lib/python2.6/test/test_support.py", line 820, in run_unittest _run_suite(suite) File "/boot/common/lib/python2.6/test/test_support.py", line 803, in _run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "test_os.py", line 298, in test_utime_dir self.assertEquals(st2.st_mtime, int(st.st_mtime-delta)) AssertionError: 1307218095.00367 != 1307218095 /boot/common/lib/python2.6/test>
Note:
See TracTickets
for help on using tickets.
The test_encodings failure is probably related to this one at HaikuPorts: http://ports.haiku-files.org/ticket/422