()
| 66 | |
| 67 | |
| 68 | def test_catch_oob(): |
| 69 | from pandas import errors |
| 70 | |
| 71 | msg = "Cannot cast 1500-01-01 00:00:00 to unit='ns' without overflow" |
| 72 | with pytest.raises(errors.OutOfBoundsDatetime, match=msg): |
| 73 | pd.Timestamp("15000101").as_unit("ns") |
| 74 | |
| 75 | |
| 76 | @pytest.mark.parametrize("is_local", [True, False]) |