New submission from Antoine Pitrou: Path.touch() doesn't seem to change the mtime under Windows, which leads to the following failure:
====================================================================== FAIL: test_touch_common (test.test_pathlib.PathTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_pathlib.py", line 1391, in test_touch_common self.assertGreaterEqual(p.stat().st_mtime, old_mtime) AssertionError: 1385140662.458926 not greater than or equal to 1385140662.4589267 ====================================================================== FAIL: test_touch_common (test.test_pathlib.WindowsPathTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_pathlib.py", line 1391, in test_touch_common self.assertGreaterEqual(p.stat().st_mtime, old_mtime) AssertionError: 1385140663.098527 not greater than or equal to 1385140663.098528 Can anyone enlighten me about the semantics of st_mtime on Windows? ---------- components: Library (Lib), Tests messages: 203817 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: test_touch_common failure under Windows type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19715> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com