| 3282 | self.assertEqual(dt.astimezone(tz=f), dt_f) # naive |
| 3283 | |
| 3284 | class Bogus(tzinfo): |
| 3285 | def utcoffset(self, dt): return None |
| 3286 | def dst(self, dt): return timedelta(0) |
| 3287 | bog = Bogus() |
| 3288 | self.assertRaises(ValueError, dt.astimezone, bog) # naive |
| 3289 | self.assertEqual(dt.replace(tzinfo=bog).astimezone(f), dt_f) |
no outgoing calls
searching dependent graphs…