New paste Repaste Download
self = <pandas.tests.tools.test_to_datetime.TestToDatetime object at 0x7f1f97142050>
value = 'a', format = None
    @pytest.mark.parametrize("value", ["a", "00:01:99"])
    @pytest.mark.parametrize("format", [None, "%H:%M:%S"])
    def test_datetime_invalid_scalar(self, value, format):
        # GH24763
>       res = to_datetime(value, errors="ignore", format=format)
pandas/tests/tools/test_to_datetime.py:1413:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
arg = 'a', errors = 'ignore', dayfirst = False, yearfirst = False, utc = False
format = None, exact = <no_default>, unit = None
infer_datetime_format = <no_default>, origin = 'unix', cache = True
    def to_datetime(
        arg: DatetimeScalarOrArrayConvertible | DictConvertible,
        errors: DateTimeErrorChoices = "raise",
        dayfirst: bool = False,
        yearfirst: bool = False,
        utc: bool = False,
        format: str | None = None,
        exact: bool | lib.NoDefault = lib.no_default,
        unit: str | None = None,
        infer_datetime_format: lib.NoDefault | bool = lib.no_default,
        origin: str = "unix",
        cache: bool = True,
    ) -> DatetimeIndex | Series | DatetimeScalar | NaTType | None:
        if errors == "ignore":
>           warnings.warn(
                "errors='ignore' is deprecated and will raise in a future version. Use to_datetime(...) instead.",
                FutureWarning,
                stacklevel=find_stack_level(),
            )
E           FutureWarning: errors='ignore' is deprecated and will raise in a future version. Use to_datetime(...) instead.
pandas/core/tools/datetimes.py:735: FutureWarning
Filename: None. Size: 2kb. View raw, , hex, or download this file.

This paste expires on 2026-03-28 08:15:38.715864+00:00. Pasted through deprecated-web.