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.
This commit is contained in:
Jack Jansen 2005-09-21 20:52:11 +00:00
parent 058bde1944
commit 19e11c86a7

View file

@ -48,9 +48,9 @@ def test_dates(self):
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)