[Python-checkins] python/dist/src/Lib/test test_macfs.py,1.7,1.8
jackjansen@users.sourceforge.net
jackjansen at users.sourceforge.net
Wed Sep 21 22:52:15 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18567
Modified Files:
test_macfs.py
Log Message:
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.
Index: test_macfs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_macfs.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- test_macfs.py 24 Apr 2003 16:02:52 -0000 1.7
+++ test_macfs.py 21 Sep 2005 20:52:11 -0000 1.8
@@ -48,9 +48,9 @@
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)
More information about the Python-checkins
mailing list