[New-bugs-announce] [issue19715] test_touch_common failure under Windows
Antoine Pitrou
report at bugs.python.org
Fri Nov 22 18:42:48 CET 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue19715>
_______________________________________
More information about the New-bugs-announce
mailing list