This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou
Date 2013-11-22.17:42:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385142168.58.0.0468844706285.issue19715@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2013-11-22 17:42:48pitrousetrecipients: + pitrou
2013-11-22 17:42:48pitrousetmessageid: <1385142168.58.0.0468844706285.issue19715@psf.upfronthosting.co.za>
2013-11-22 17:42:48pitroulinkissue19715 messages
2013-11-22 17:42:48pitroucreate