(self)
| 2436 | timedelta(hours=2)) |
| 2437 | |
| 2438 | def testTzwinLocalTimeOnlyTZName(self): |
| 2439 | # For zones with DST, the name defaults to standard time |
| 2440 | with TZWinContext('Eastern Standard Time'): |
| 2441 | twl = tz.tzwinlocal() |
| 2442 | self.assertEqual(dt_time(14, 10, tzinfo=twl).tzname(), |
| 2443 | 'Eastern Standard Time') |
| 2444 | |
| 2445 | # For zones with no DST, this should work normally. |
| 2446 | with TZWinContext('South Africa Standard Time'): |
| 2447 | twl = tz.tzwinlocal() |
| 2448 | self.assertEqual(dt_time(14, 10, tzinfo=twl).tzname(), |
| 2449 | 'South Africa Standard Time') |
| 2450 | |
| 2451 | |
| 2452 | class TzPickleTest(PicklableMixin, unittest.TestCase): |
nothing calls this directly
no test coverage detected