Matti Picus pushed to branch branch/default at PyPy / pypy
Commits: 95a26954 by Julian Berman at 2020-07-18T15:52:08-04:00 Use timespec on macOS too. It's present, the fields are just named slightly differently. I think this fixes all but one test in rlib.rposix_stat, which previously were failing. The last one just needs some bifurcation due again to the differing names in the timespec struct. More broadly, the bug here is that this code has different behavior on PyPy and CPython + macOS: touch foo for each in pypy3 python3.6; do echo $each; $each -c 'import os; print(os.stat("foo").st_mtime)' done where on PyPy the *time attributes only give integer precision. And yeah this actually came up -- a test I wrote for other code failed on PyPy because the mtime of a file was changing by less than a second of precision. - - - - - 4d69d1aa by Julian Berman at 2020-07-18T16:03:40-04:00 Uglily fix test_high_precision_stat_time on macOS Copypaste + modify the differing struct field names. - - - - - 99a24228 by Julian Berman at 2020-07-18T16:12:47-04:00 Fixup the comments around timespec field naming. - - - - - d785b6cf by Matti Picus at 2020-08-09T20:59:31+03:00 update contributors list, 8 new names - - - - - 4 changed files: - LICENSE - pypy/doc/contributor.rst - rpython/rlib/rposix_stat.py - rpython/rlib/test/test_rposix_stat.py View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/2eb845af95ebac5fb665b6b7977d56652afe7207...d785b6cf113f2f4295d91f48fa134a801dc253e1 -- View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/2eb845af95ebac5fb665b6b7977d56652afe7207...d785b6cf113f2f4295d91f48fa134a801dc253e1 You're receiving this email because of your account on foss.heptapod.net.
_______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit