From 19e11c86a72f6da18bd07b822eabe2f38dd6d6c4 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Wed, 21 Sep 2005 20:52:11 +0000 Subject: 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. --- Lib/test/test_macfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_macfs.py b/Lib/test/test_macfs.py index 3d32e71..9c0e3a1 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) -- cgit v0.12