Changes to make these tests work on the Mac.

This commit is contained in:
Guido van Rossum 1997-05-16 13:51:48 +00:00
parent 9522274205
commit 3f11da0aaf
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ def main():
def strftest(now):
if verbose:
print "strftime test for", time.ctime(now)
nowsecs = int(now)
nowsecs = str(long(now))[:-1]
gmt = time.gmtime(now)
now = time.localtime(now)
@ -75,7 +75,7 @@ def strftest(now):
# This is for IRIX; on Solaris, %C yields date(1) format.
# Tough.
('%k', '%2d' % now[3], 'hour, blank padded ( 0-23)'),
('%s', '%d' % nowsecs, 'seconds since the Epoch in UCT'),
('%s', nowsecs, 'seconds since the Epoch in UCT'),
('%3y', '%03d' % (now[0]%100),
'year without century rendered using fieldwidth'),
('%n', '\n', 'newline character'),