diff options
author | Guido van Rossum <guido@python.org> | 1997-05-16 13:51:48 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-16 13:51:48 +0000 |
commit | 3f11da0aafaad640ad6f01a576696fbbcd99597e (patch) | |
tree | dd5cb6ba25fd9486d8168271f8980a91a75a6df3 /Lib/test/test_strftime.py | |
parent | 9522274205aa93cda20bb79aa6d1ee75e0ba5707 (diff) | |
download | cpython-git-3f11da0aafaad640ad6f01a576696fbbcd99597e.tar.gz |
Changes to make these tests work on the Mac.
Diffstat (limited to 'Lib/test/test_strftime.py')
-rwxr-xr-x | Lib/test/test_strftime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py index 1fa03f26bb..0c8f41fd61 100755 --- a/Lib/test/test_strftime.py +++ b/Lib/test/test_strftime.py @@ -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'), |