summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2005-09-21 20:52:11 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2005-09-21 20:52:11 (GMT)
commit19e11c86a72f6da18bd07b822eabe2f38dd6d6c4 (patch)
tree40a9fbc74b816ff7bdac6d2ebc0a30a3e93082f6
parent058bde194485ff4a0860c1dfc152763403655303 (diff)
downloadcpython-19e11c86a72f6da18bd07b822eabe2f38dd6d6c4.zip
cpython-19e11c86a72f6da18bd07b822eabe2f38dd6d6c4.tar.gz
cpython-19e11c86a72f6da18bd07b822eabe2f38dd6d6c4.tar.bz2
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.
-rw-r--r--Lib/test/test_macfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_macfs.py b/Lib/test/test_macfs.py
index 3d32e71..9c0e3a1 100644
--- a/Lib/test/test_macfs.py
+++ b/Lib/test/test_macfs.py
@@ -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)