Opened 14 years ago
Last modified 6 months ago
#6755 closed bug
Python3's test_os.py fails 3 tests — at Initial Version
Reported by: | scottmc | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1.1 |
Component: | System | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
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'
A binary build of python3 can be found here: http://ports-space.haiku-files.org/dev-lang/
Tests are in boot/common/lib/Python3.2/test to run use "python3 test_os.py"
Note:
See TracTickets
for help on using tickets.