mirror of
https://github.com/python/cpython
synced 2024-10-08 21:09:49 +00:00
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:
parent
058bde1944
commit
19e11c86a7
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue