From: Jack Jansen Date: Wed, 21 Sep 2005 20:52:11 +0000 (+0000) Subject: MacOSX 10.4 apparently does not allow the creation time to be set to later X-Git-Tag: v2.5a0~1346 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19e11c86a72f6da18bd07b822eabe2f38dd6d6c4;p=thirdparty%2FPython%2Fcpython.git MacOSX 10.4 apparently does not allow the creation time to be set to later than the modification time. Changed the SetDates test to accomodate. Backport candidate. --- diff --git a/Lib/test/test_macfs.py b/Lib/test/test_macfs.py index 3d32e7115ddd..9c0e3a1a7c10 100644 --- a/Lib/test/test_macfs.py +++ b/Lib/test/test_macfs.py @@ -48,9 +48,9 @@ class TestMacfs(unittest.TestCase): import time fss = macfs.FSSpec(test_support.TESTFN) now = int(time.time()) - fss.SetDates(now, now-1, now-2) + fss.SetDates(now, now+1, now+2) dates = fss.GetDates() - self.assertEqual(dates, (now, now-1, now-2)) + self.assertEqual(dates, (now, now+1, now+2)) def test_ctor_type(self): fss = macfs.FSSpec(test_support.TESTFN)