mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +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
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue