tzinfo.fromutc invocations that raise an error.
(dt, errtype)
| 614 | ], |
| 615 | ) |
| 616 | def test_fromutc_errors(dt, errtype): |
| 617 | """tzinfo.fromutc invocations that raise an error.""" |
| 618 | zone = tz.gettz("Europe/London") # Any zone should work |
| 619 | with pytest.raises(errtype): |
| 620 | zone.fromutc(dt) |
| 621 | |
| 622 | |
| 623 | @as_list |