[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

Daniel Eriksson report at bugs.python.org
Sun Aug 3 17:17:40 CEST 2014


Daniel Eriksson added the comment:

So me and @larstiq have been sitting with this during the sprint here and we have figured out some things but haven't had the time to put together a patch.

If you put two p.touch() before starting the testing, it will not fail on BSD.

What we have found out so far is that during file creation the resolution of the timestamp is higher then at the touch attempt when a file exists.

The main issue as we see it is that os.stat can return a timestamp with more granularity than os.utime can set.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19838>
_______________________________________


More information about the Python-bugs-list mailing list