Commit 2371d422 authored by Jack Jansen's avatar Jack Jansen

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.
parent ce143cb6
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment