| 4459 | |
| 4460 | # Wrong types. |
| 4461 | class C4(tzinfo): |
| 4462 | def utcoffset(self, dt): return "aname" |
| 4463 | def dst(self, dt): return 7 |
| 4464 | def tzname(self, dt): return 0 |
| 4465 | t = cls(1, 1, 1, tzinfo=C4()) |
| 4466 | self.assertRaises(TypeError, t.utcoffset) |
| 4467 | self.assertRaises(TypeError, t.dst) |
no outgoing calls