summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strftime.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-16 13:51:48 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-16 13:51:48 (GMT)
commit3f11da0aafaad640ad6f01a576696fbbcd99597e (patch)
treedd5cb6ba25fd9486d8168271f8980a91a75a6df3 /Lib/test/test_strftime.py
parent9522274205aa93cda20bb79aa6d1ee75e0ba5707 (diff)
downloadcpython-3f11da0aafaad640ad6f01a576696fbbcd99597e.zip
cpython-3f11da0aafaad640ad6f01a576696fbbcd99597e.tar.gz
cpython-3f11da0aafaad640ad6f01a576696fbbcd99597e.tar.bz2
Changes to make these tests work on the Mac.
Diffstat (limited to 'Lib/test/test_strftime.py')
-rwxr-xr-xLib/test/test_strftime.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py
index 1fa03f2..0c8f41f 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'),