Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

rlib/test/test_rposix.py::TestPosixUnicode::()::test_stat

self = <rpython.rlib.test.test_rposix.TestPosixUnicode instance at 0x00000223df9bd4a0>

    def test_stat(self):
        def f():
            return rposix_stat.stat(self.path).st_mtime
        if sys.platform == 'win32':
            # double vs. float, be satisfied with sub-millisec resolution
>           assert abs(interpret(f, []) - os.stat(self.ufilename).st_mtime) < 1e-4
E           assert 50.70386505126953 < 0.0001
E            +  where 50.70386505126953 = abs((1778931681.338 - 1778931732.041865))
E            +    where 1778931681.338 = interpret(<function f at 0x00000223e04e5d30>, [])
E            +    and   1778931732.041865 = 1778931732.041865
E            +      where 1778931732.041865 = nt.stat_result(st_mode=33206, st_ino=77405618596277699, st_dev=2394200642, st_...integer_atime=1778931732, _integer_mtime=1778931732, _integer_ctime=1778931726).st_mtime
E            +        where nt.stat_result(st_mode=33206, st_ino=77405618596277699, st_dev=2394200642, st_...integer_atime=1778931732, _integer_mtime=1778931732, _integer_ctime=1778931726) = <built-in function stat>(u'd:\\systemtemp\\pytest\\usession-main-871\\test_open\u65e5\u672c.txt')
E            +          where <built-in function stat> = <built-in function stat>
E            +            where <built-in function stat> = os.stat
E            +          and   u'd:\\systemtemp\\pytest\\usession-main-871\\test_open\u65e5\u672c.txt' = u'd:\\systemtemp\\pytest\\usession-main-871\\test_open\u65e5\u672c.txt'
E            +            where u'd:\\systemtemp\\pytest\\usession-main-871\\test_open\u65e5\u672c.txt' = <rpython.rlib.test.test_rposix.TestPosixUnicode instance at 0x00000223df9bd4a0>.ufilename

rlib\test\test_rposix.py:397: AssertionError
---------- Captured stderr call ----------
[platform:msg] Updated environment with vsver 160, using x64 True
[rtyper] specializing: 100 / 716 blocks   (13%)
[rtyper] specializing: 200 / 716 blocks   (27%)
[rtyper] specializing: 300 / 716 blocks   (41%)
[rtyper] specializing: 400 / 716 blocks   (55%)
[rtyper] specializing: 500 / 716 blocks   (69%)
[rtyper] specializing: 600 / 723 blocks   (82%)
[rtyper] specializing: 700 / 725 blocks   (96%)
[rtyper] -=- specialized 725 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
builder: rpython-win-x86-64 build #399
test: rlib/test/test_rposix/py/TestPosixUnicode/()/test_stat