]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
MacOSX 10.4 apparently does not allow the creation time to be set to later
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 21 Sep 2005 20:52:11 +0000 (20:52 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 21 Sep 2005 20:52:11 +0000 (20:52 +0000)
than the modification time. Changed the SetDates test to accomodate.

Backport candidate.

Lib/test/test_macfs.py

index 3d32e7115ddd9ba97d39d2fb817848fda264bdbf..9c0e3a1a7c10b0f587f6e9970a7f26a6255aa627 100644 (file)
@@ -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)