summaryrefslogtreecommitdiff
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-06-29 15:57:50 +0000
committerRaymond Hettinger <python@rcn.com>2003-06-29 15:57:50 +0000
commitf819421463d5c66c6accc7d59cb6b0a2d0fcd333 (patch)
tree58c22eb8a6f736b7496dc6a90b45dc1394b4bea2 /Lib/test/test_strptime.py
parentfd55dc9d399b6231602d6368c9f9dd9d6e33e1de (diff)
downloadcpython-f819421463d5c66c6accc7d59cb6b0a2d0fcd333.tar.gz
Removed invalid test.
Analysis by Bob Halley: The test seems to expect that if time.daylight is true, then the is_dst field of the tm structure will be 1 too. But this isn't the case, since daylight is true if the timezone does DST, *not* if DST is in effect.
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index c9d705b3cc..e49a1ba8c6 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -299,9 +299,6 @@ class StrptimeTests(unittest.TestCase):
self.failUnlessEqual(strp_output.tm_isdst, 0)
strp_output = _strptime.strptime("GMT", "%Z")
self.failUnlessEqual(strp_output.tm_isdst, 0)
- if time.daylight:
- strp_output = _strptime.strptime(time.tzname[1], "%Z")
- self.failUnlessEqual(strp_output[8], 1)
time_tuple = time.localtime()
strf_output = time.strftime("%Z") #UTC does not have a timezone
strp_output = _strptime.strptime(strf_output, "%Z")