]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed invalid test.
authorRaymond Hettinger <python@rcn.com>
Sun, 29 Jun 2003 15:57:50 +0000 (15:57 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 29 Jun 2003 15:57:50 +0000 (15:57 +0000)
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.

Lib/test/test_strptime.py

index c9d705b3ccd75ba0e662f1b5c29aa1f51786ea41..e49a1ba8c6cc5018c9df3b1feca90b92df40da9e 100644 (file)
@@ -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")