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 brian.curtin, pitrou
Date 2011-11-03.02:12:42
SpamBayes Score 2.140621e-12
Marked as misclassified No
Message-id <1320286363.12.0.257559148979.issue13327@psf.upfronthosting.co.za>
In-reply-to
Content
You have a possible failure here: 

+        # Set to the current time in the old explicit way.
+        os.utime(support.TESTFN, None)
+        st1 = os.stat(support.TESTFN)
+        # Set to the current time in the new way
+        os.utime(support.TESTFN)
+        st2 = os.stat(support.TESTFN)
+        self.assertEqual(st1.st_mtime, st2.st_mtime)

I managed to trigger it after a run of tests:

======================================================================
FAIL: test_utime_noargs (test.test_os.StatAttributeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/cpython/default/Lib/test/test_os.py", line 286, in test_utime_noargs
    self.assertEqual(st1.st_mtime, st2.st_mtime)
AssertionError: 1320285959.712339 != 1320285959.7133389


Otherwise, +1.
History
Date User Action Args
2011-11-03 02:12:43pitrousetrecipients: + pitrou, brian.curtin
2011-11-03 02:12:43pitrousetmessageid: <1320286363.12.0.257559148979.issue13327@psf.upfronthosting.co.za>
2011-11-03 02:12:42pitroulinkissue13327 messages
2011-11-03 02:12:42pitroucreate