def METHOD_NAME(self, tmp_path):
    bad_file = str(tmp_path / "no_expiration")
    with open(iers.IERS_LEAP_SECOND_FILE) as fh:
        lines = fh.readlines()
    with open(bad_file, "w") as fh:
        fh.write("\n".join([line for line in lines if not line.startswith("#")]))
    with pytest.warns(AstropyWarning, match="ValueError.*did not find expiration"):
        update_leap_seconds([bad_file])