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

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

self = <rpython.rlib.test.test_rposix.TestPosixAscii instance at 0x00000223dc749be0>

    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 18.407551050186157 < 0.0001
E            +  where 18.407551050186157 = abs((1778931635.566678 - 1778931653.974229))
E            +    where 1778931635.566678 = interpret(<function f at 0x00000223ddd82200>, [])
E            +    and   1778931653.974229 = 1778931653.974229
E            +      where 1778931653.974229 = nt.stat_result(st_mode=33206, st_ino=138485688542440147, st_dev=2394200642, st...integer_atime=1778931653, _integer_mtime=1778931653, _integer_ctime=1778931641).st_mtime
E            +        where nt.stat_result(st_mode=33206, st_ino=138485688542440147, st_dev=2394200642, st...integer_atime=1778931653, _integer_mtime=1778931653, _integer_ctime=1778931641) = <built-in function stat>(u'd:\\systemtemp\\pytest\\usession-main-871\\test_open_ascii')
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_ascii' = u'd:\\systemtemp\\pytest\\usession-main-871\\test_open_ascii'
E            +            where u'd:\\systemtemp\\pytest\\usession-main-871\\test_open_ascii' = <rpython.rlib.test.test_rposix.TestPosixAscii instance at 0x00000223dc749be0>.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/TestPosixAscii/()/test_stat