Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing pypa-build-hook Using pypaBuildPhase Sourcing python-runtime-deps-check-hook Using pythonRuntimeDepsCheckHook Sourcing pypa-install-hook Using pypaInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing python-catch-conflicts-hook.sh Sourcing pytest-check-hook Using pytestCheckPhase Running phase: unpackPhase unpacking source archive /nix/store/h5bjm1x182swkjyndl0qmnhgbnxwwvii-source source root is source setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tests/utils.py" Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Executing pypaBuildPhase Creating a wheel... pypa build flags: --no-isolation --outdir dist/ --wheel * Getting build dependencies for wheel... * Building wheel... Successfully built pandas_stubs-2.3.3.260113-py3-none-any.whl Finished creating a wheel... Finished executing pypaBuildPhase Running phase: pythonRuntimeDepsCheckHook Executing pythonRuntimeDepsCheck Checking runtime dependencies for pandas_stubs-2.3.3.260113-py3-none-any.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase Executing pypaInstallPhase Successfully installed pandas_stubs-2.3.3.260113-py3-none-any.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.260113 checking for references to /build/ in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.260113... patching script interpreter paths in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.260113 stripping (with command strip and flags -S -p) in /nix/store/8mh4v0p65sd808kjydkjryh1qy7jg7z1-python3.14-pandas-stubs-2.3.3.260113/lib shrinking RPATHs of ELF executables and libraries in /nix/store/ff376ykairxnv6mgjjixp9pychmcqxl8-python3.14-pandas-stubs-2.3.3.260113-dist checking for references to /build/ in /nix/store/ff376ykairxnv6mgjjixp9pychmcqxl8-python3.14-pandas-stubs-2.3.3.260113-dist... patching script interpreter paths in /nix/store/ff376ykairxnv6mgjjixp9pychmcqxl8-python3.14-pandas-stubs-2.3.3.260113-dist Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Running phase: installCheckPhase no Makefile or custom installCheckPhase, doing nothing Running phase: pythonCatchConflictsPhase Running phase: pythonRemoveBinBytecodePhase Running phase: pythonImportsCheckPhase Executing pythonImportsCheckPhase Check whether the following modules can be imported: pandas Running phase: pytestCheckPhase Executing pytestCheckPhase pytest flags: -m pytest -k not\ \(test_all_read_without_lxml_dtype_backend\)\ and\ not\ \(test_orc\)\ and\ not\ \(test_plotting\)\ and\ not\ \(test_spss\)\ and\ not\ \(test_show_version\)\ and\ not\ \(test_timedelta_cmp\)\ and\ not\ \(test_timestamp_cmp\) ============================= test session starts ============================== platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0 rootdir: /build/source configfile: pyproject.toml collected 2252 items / 46 deselected / 2206 selected tests/arrays/test_arrow_extension_array.py ....... [ 0%] tests/arrays/test_arrow_string_array.py ........... [ 0%] tests/arrays/test_base_string_array.py ................................. [ 2%] ......................................................... [ 4%] tests/arrays/test_boolean_array.py ..................................... [ 6%] .............................................. [ 8%] tests/arrays/test_cumul.py . [ 8%] tests/arrays/test_extension_array.py . [ 8%] tests/arrays/test_floating_array.py .................................... [ 10%] ................................................ [ 12%] tests/arrays/test_integer_array.py ..................................... [ 14%] ....................................................... [ 16%] tests/arrays/test_numpy_extension_array.py ......FFF...FFFFFFFFF........ [ 18%] ........................................................................ [ 21%] ......................................... [ 23%] tests/arrays/test_string_array.py ........... [ 23%] tests/frame/test_frame.py .............................................. [ 25%] ............FFF....................s.................................... [ 29%] ......................................... [ 30%] tests/frame/test_groupby.py .................... [ 31%] tests/frame/test_indexing.py ........................................... [ 33%] ...... [ 33%] tests/indexes/bool/test_add.py .... [ 34%] tests/indexes/bool/test_mul.py .... [ 34%] tests/indexes/bool/test_sub.py .... [ 34%] tests/indexes/bool/test_truediv.py .... [ 34%] tests/indexes/complex/test_add.py .... [ 34%] tests/indexes/complex/test_mul.py .... [ 35%] tests/indexes/complex/test_sub.py .... [ 35%] tests/indexes/complex/test_truediv.py .... [ 35%] tests/indexes/float/test_add.py .... [ 35%] tests/indexes/float/test_dtypes.py ..................................... [ 37%] ................ [ 38%] tests/indexes/float/test_floordiv.py .... [ 38%] tests/indexes/float/test_mul.py .... [ 38%] tests/indexes/float/test_sub.py .... [ 38%] tests/indexes/float/test_truediv.py ..... [ 38%] tests/indexes/int/test_add.py .... [ 38%] tests/indexes/int/test_floordiv.py .... [ 39%] tests/indexes/int/test_mul.py .... [ 39%] tests/indexes/int/test_sub.py .... [ 39%] tests/indexes/int/test_truediv.py ..... [ 39%] tests/indexes/str/test_add.py .... [ 39%] tests/indexes/str/test_mul.py .... [ 40%] tests/indexes/test_add.py ..... [ 40%] tests/indexes/test_categoricalindex.py .... [ 40%] tests/indexes/test_datetime_index.py ........ [ 40%] tests/indexes/test_floordiv.py .... [ 41%] tests/indexes/test_indexes.py .......................................... [ 42%] .............................................. [ 45%] tests/indexes/test_mul.py ..... [ 45%] tests/indexes/test_multi_indexes.py ............ [ 45%] tests/indexes/test_rangeindex.py ....... [ 46%] tests/indexes/test_sub.py ..... [ 46%] tests/indexes/test_truediv.py ....... [ 46%] tests/indexes/timedeltaindex/test_floordiv.py ..... [ 46%] tests/indexes/timedeltaindex/test_mul.py .... [ 47%] tests/indexes/timedeltaindex/test_truediv.py ..... [ 47%] tests/scalars/test_scalars.py ....F........................ [ 48%] tests/scalars/timedelta/test_arithmetic.py . [ 48%] tests/series/bool/test_add.py ..... [ 48%] tests/series/bool/test_dtypes.py .......... [ 49%] tests/series/bool/test_mul.py ..... [ 49%] tests/series/bool/test_sub.py ..... [ 49%] tests/series/bool/test_truediv.py ..... [ 50%] tests/series/bytes/test_dtypes.py ...... [ 50%] tests/series/categorical/test_dtypes.py .. [ 50%] tests/series/complex/test_add.py ..... [ 50%] tests/series/complex/test_dtypes.py ................. [ 51%] tests/series/complex/test_mul.py ..... [ 51%] tests/series/complex/test_sub.py ..... [ 51%] tests/series/complex/test_truediv.py ..... [ 52%] tests/series/float/test_add.py ..... [ 52%] tests/series/float/test_dtypes.py ...................................... [ 54%] ........................... [ 55%] tests/series/float/test_floordiv.py ..... [ 55%] tests/series/float/test_mul.py ..... [ 55%] tests/series/float/test_sub.py ..... [ 55%] tests/series/float/test_truediv.py ...... [ 56%] tests/series/int/test_add.py ..... [ 56%] tests/series/int/test_dtypes.py ........................................ [ 58%] ...................................... [ 59%] tests/series/int/test_floordiv.py ..... [ 60%] tests/series/int/test_mul.py ..... [ 60%] tests/series/int/test_sub.py ..... [ 60%] tests/series/int/test_truediv.py ...... [ 60%] tests/series/object/test_dtypes.py ..... [ 61%] tests/series/period/test_sub.py . [ 61%] tests/series/str/test_add.py ..... [ 61%] tests/series/str/test_dtypes.py ........... [ 61%] tests/series/str/test_mul.py ..... [ 62%] tests/series/test_add.py ...... [ 62%] tests/series/test_agg.py ....F... [ 62%] tests/series/test_cumul.py ........ [ 63%] tests/series/test_floordiv.py ..... [ 63%] tests/series/test_indexing.py ..................... [ 64%] tests/series/test_mul.py ...... [ 64%] tests/series/test_properties.py .. [ 64%] tests/series/test_series.py ............................................ [ 66%] ........................................................................ [ 69%] ...................................... [ 71%] tests/series/test_sub.py ......... [ 72%] tests/series/test_truediv.py ........ [ 72%] tests/series/timedelta/test_add.py ....... [ 72%] tests/series/timedelta/test_dtypes.py .................................. [ 74%] ............ [ 74%] tests/series/timedelta/test_floordiv.py ...... [ 75%] tests/series/timedelta/test_mul.py ..... [ 75%] tests/series/timedelta/test_sub.py ....... [ 75%] tests/series/timedelta/test_truediv.py ...... [ 75%] tests/series/timestamp/test_add.py ....... [ 76%] tests/series/timestamp/test_dtypes.py .................................. [ 77%] .................. [ 78%] tests/series/timestamp/test_sub.py ....... [ 78%] tests/series/void/test_dtypes.py ... [ 79%] tests/test_api_types.py ................................... [ 80%] tests/test_api_typing.py .................. [ 81%] tests/test_config.py ...... [ 81%] tests/test_dtypes.py .....F......... [ 82%] tests/test_errors.py .........................s............ [ 84%] tests/test_extension.py ..... [ 84%] tests/test_groupby.py .............. [ 84%] tests/test_holidays.py . [ 85%] tests/test_internal.py . [ 85%] tests/test_interval.py ..... [ 85%] tests/test_interval_index.py ...... [ 85%] tests/test_io.py ...........ss..sssss................................... [ 88%] ....s............ [ 88%] tests/test_merge.py . [ 88%] tests/test_natype.py . [ 88%] tests/test_pandas.py ......F........................FFF. [ 90%] tests/test_resampler.py ............................. [ 91%] tests/test_string_accessors.py .................... [ 92%] tests/test_styler.py ............................ [ 94%] tests/test_testing.py .. [ 94%] tests/test_timefuncs.py .......................................F........ [ 96%] ...... [ 96%] tests/test_typing.py ................................................... [ 98%] [ 98%] tests/test_utility.py ... [ 99%] tests/test_windowing.py ...................... [100%] =================================== FAILURES =================================== _______________ test_construction_sequence[missing_values2-list] _______________ missing_values = (NaT,), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError ______________ test_construction_sequence[missing_values2-tuple] _______________ missing_values = (NaT,), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _____________ test_construction_sequence[missing_values2-UserList] _____________ missing_values = (NaT,), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _______________ test_construction_sequence[missing_values4-list] _______________ missing_values = (None, NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError ______________ test_construction_sequence[missing_values4-tuple] _______________ missing_values = (None, NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _____________ test_construction_sequence[missing_values4-UserList] _____________ missing_values = (None, NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _______________ test_construction_sequence[missing_values5-list] _______________ missing_values = (, NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError ______________ test_construction_sequence[missing_values5-tuple] _______________ missing_values = (, NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _____________ test_construction_sequence[missing_values5-UserList] _____________ missing_values = (, NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _______________ test_construction_sequence[missing_values6-list] _______________ missing_values = (None, , NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError ______________ test_construction_sequence[missing_values6-tuple] _______________ missing_values = (None, , NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _____________ test_construction_sequence[missing_values6-UserList] _____________ missing_values = (None, , NaT), typ = @pytest.mark.parametrize("typ", [list, tuple, UserList]) @pytest.mark.parametrize("missing_values", powerset([None, pd.NA, pd.NaT], 1)) def test_construction_sequence( missing_values: tuple[Any, ...], typ: Callable[[Sequence[Any]], Sequence[Any]] ) -> None: # `pd.NaT in [pd.NA, pd.NaT]` leads to an exception if missing_values[-1] is pd.NaT: expected_type = DatetimeArray if PD_LTE_23 else NumpyExtensionArray > check(pd.array(typ(missing_values)), expected_type) E RuntimeError: Expected type '' but got '' tests/arrays/test_numpy_extension_array.py:44: RuntimeError _____________________ test_pivot_table_aggfunc_numpy_ufunc _____________________ sample_df = A B C D 0 foo one 1.0 10.0 1 foo one 2.0 20.0 2 foo two 3.0 30.0 3 bar two 4.0 40.0 4 bar one 5.0 50.0 5 bar one 6.0 60.0 def test_pivot_table_aggfunc_numpy_ufunc(sample_df: pd.DataFrame) -> None: """Test with df.pivot_table using np.ufunc.""" > with pytest_warns_bounded( FutureWarning, r"The provided callable.*", lower="2.3.0", ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/frame/test_frame.py:1782: Failed ________________________ test_pivot_table_aggfunc_list _________________________ sample_df = A B C D 0 foo one 1.0 10.0 1 foo one 2.0 20.0 2 foo two 3.0 30.0 3 bar two 4.0 40.0 4 bar one 5.0 50.0 5 bar one 6.0 60.0 def test_pivot_table_aggfunc_list(sample_df: pd.DataFrame) -> None: """Test with df.pivot_table using list of strings.""" check( assert_type( sample_df.pivot_table( values="C", index="A", columns="B", aggfunc=["sum", "mean"] ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( sample_df.pivot_table( values="C", index="A", columns="B", aggfunc=["min", "max", "count"] ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( sample_df.pivot_table( values="C", index="A", columns="B", aggfunc=["std", "var", "median"] ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( sample_df.pivot_table( values="C", index="A", columns="B", aggfunc=["first", "last", "nunique"] ), pd.DataFrame, ), pd.DataFrame, ) > with pytest_warns_bounded( FutureWarning, r"The provided callable.*", lower="2.3.0", ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/frame/test_frame.py:1936: Failed ________________________ test_pivot_table_aggfunc_dict _________________________ sample_df = A B C D 0 foo one 1.0 10.0 1 foo one 2.0 20.0 2 foo two 3.0 30.0 3 bar two 4.0 40.0 4 bar one 5.0 50.0 5 bar one 6.0 60.0 def test_pivot_table_aggfunc_dict(sample_df: pd.DataFrame) -> None: """Test dict of aggfuncs mapping columns to functions.""" check( assert_type( sample_df.pivot_table( values=["C", "D"], index="A", columns="B", aggfunc={"C": "sum", "D": "mean"}, ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( sample_df.pivot_table( values=["C", "D"], index="A", columns="B", aggfunc={"C": "min", "D": "max"}, ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( sample_df.pivot_table( values=["C", "D"], index="A", columns="B", aggfunc={"C": "nunique", "D": "count"}, ), pd.DataFrame, ), pd.DataFrame, ) > with pytest_warns_bounded( FutureWarning, r"The provided callable.*", lower="2.3.0", ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/frame/test_frame.py:2036: Failed ______________________ test_timedelta_properties_methods _______________________ def test_timedelta_properties_methods() -> None: td = pd.Timedelta("1 day") check(assert_type(td.value, int), int) check(assert_type(td.asm8, np.timedelta64), np.timedelta64) check(assert_type(td.days, int), int) check(assert_type(td.microseconds, int), int) check(assert_type(td.nanoseconds, int), int) check(assert_type(td.seconds, int), int) check(assert_type(td.value, int), int) check(assert_type(td.resolution_string, str), str) check(assert_type(td.components, Components), Components) check(assert_type(td.unit, TimeUnit), str) check(assert_type(td.ceil("D"), pd.Timedelta), pd.Timedelta) check(assert_type(td.floor(Day()), pd.Timedelta), pd.Timedelta) check(assert_type(td.isoformat(), str), str) check(assert_type(td.round("s"), pd.Timedelta), pd.Timedelta) check(assert_type(td.to_numpy(), np.timedelta64), np.timedelta64) check(assert_type(td.to_pytimedelta(), dt.timedelta), dt.timedelta) check(assert_type(td.to_timedelta64(), np.timedelta64), np.timedelta64) check(assert_type(td.total_seconds(), float), float) > check(assert_type(td.view(np.int64), object), np.int64) ^^^^^^^^^^^^^^^^^ tests/scalars/test_scalars.py:508: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead. pandas/_libs/tslibs/timedeltas.pyx:1690: DeprecationWarning _______________________________ test_agg_complex _______________________________ def test_agg_complex() -> None: series = pd.Series([3j, 3 + 4j, 2j]) check(assert_type(series, "pd.Series[complex]"), pd.Series, np.complex128) check(assert_type(series.mean(), complex), np.complex128) with pytest_warns_bounded( np.exceptions.ComplexWarning, r"Casting complex values to real discards the imaginary part", ): check(assert_type(series.median(), float), np.float64) with ( > pytest_warns_bounded( np.exceptions.ComplexWarning, r"Casting complex values to real discards the imaginary part", ), pytest_warns_bounded( RuntimeWarning, r"invalid value encountered in sqrt", upper="2.3.99" ), ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/series/test_agg.py:58: Failed ______________________________ test_sparse_dtype _______________________________ def test_sparse_dtype() -> None: s_dt = pd.SparseDtype("i4") check(assert_type(s_dt, pd.SparseDtype), pd.SparseDtype) check(assert_type(pd.SparseDtype(str), pd.SparseDtype), pd.SparseDtype) check(assert_type(pd.SparseDtype(complex), pd.SparseDtype), pd.SparseDtype) check(assert_type(pd.SparseDtype(bool), pd.SparseDtype), pd.SparseDtype) check(assert_type(pd.SparseDtype(np.int64), pd.SparseDtype), pd.SparseDtype) check(assert_type(pd.SparseDtype(str), pd.SparseDtype), pd.SparseDtype) check(assert_type(pd.SparseDtype(float), pd.SparseDtype), pd.SparseDtype) > check(assert_type(pd.SparseDtype(np.datetime64), pd.SparseDtype), pd.SparseDtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_dtypes.py:128: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /nix/store/gidppvbxdshfx8y9y5kv84zq7z6amm0m-python3.14-pandas-3.0.4/lib/python3.14/site-packages/pandas/core/dtypes/dtypes.py:1785: in __init__ fill_value = na_value_for_dtype(dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ dtype = dtype('>> na_value_for_dtype(np.dtype("int64")) 0 >>> na_value_for_dtype(np.dtype("int64"), compat=False) nan >>> na_value_for_dtype(np.dtype("float64")) nan >>> na_value_for_dtype(np.dtype("complex128")) nan >>> na_value_for_dtype(np.dtype("bool")) False >>> na_value_for_dtype(np.dtype("datetime64[ns]")) np.datetime64('NaT','ns') """ if isinstance(dtype, ExtensionDtype): return dtype.na_value elif dtype.kind in "mM": unit = np.datetime_data(dtype)[0] > return dtype.type("NaT", unit) ^^^^^^^^^^^^^^^^^^^^^^^ E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead. /nix/store/gidppvbxdshfx8y9y5kv84zq7z6amm0m-python3.14-pandas-3.0.4/lib/python3.14/site-packages/pandas/core/dtypes/missing.py:635: DeprecationWarning __________________________________ test_isna ___________________________________ def test_isna() -> None: # https://github.com/pandas-dev/pandas-stubs/issues/264 s = pd.Series([1, np.nan, 3.2]) check(assert_type(pd.isna(s), "pd.Series[bool]"), pd.Series, np.bool_) check(assert_type(pd.notna(s), "pd.Series[bool]"), pd.Series, np.bool_) df = pd.DataFrame({"a": [1, 2, 1, 2], "b": [1, 1, 2, np.nan]}) check(assert_type(pd.isna(df), "pd.DataFrame"), pd.DataFrame) check(assert_type(pd.notna(df), "pd.DataFrame"), pd.DataFrame) idx = pd.Index([1, 2, np.nan, float("nan")]) check(assert_type(pd.isna(idx), np_1darray_bool), np_1darray_bool) check(assert_type(pd.notna(idx), np_1darray_bool), np_1darray_bool) # ExtensionArray ext_arr = idx.array check(assert_type(pd.isna(ext_arr), np_1darray_bool), np_1darray_bool) check(assert_type(pd.notna(ext_arr), np_1darray_bool), np_1darray_bool) # 1-D numpy array arr_1d = idx.to_numpy() check(assert_type(pd.isna(arr_1d), np_1darray_bool), np_1darray_bool) check(assert_type(pd.notna(arr_1d), np_1darray_bool), np_1darray_bool) # 2-D numpy array arr_2d = idx.to_numpy().reshape(2, 2) check(assert_type(pd.isna(arr_2d), np_2darray[np.bool]), np_2darray[np.bool]) check(assert_type(pd.notna(arr_2d), np_2darray[np.bool]), np_2darray[np.bool]) # N-D numpy array arr_nd = idx.to_numpy().reshape([2, 2]) check(assert_type(pd.isna(arr_nd), np_ndarray_bool), np_ndarray_bool) check(assert_type(pd.notna(arr_nd), np_ndarray_bool), np_ndarray_bool) # List of scalars l_sca = [1, 2.5, float("nan")] check(assert_type(pd.isna(l_sca), np_1darray_bool), np_1darray_bool) check(assert_type(pd.notna(l_sca), np_1darray_bool), np_1darray_bool) # List of unknown members l_any: list[object] = [arr_1d, ext_arr] check(assert_type(pd.isna(l_any), np_ndarray_bool), np_ndarray_bool) check(assert_type(pd.notna(l_any), np_ndarray_bool), np_ndarray_bool) assert check(assert_type(pd.isna(pd.NA), bool), bool) assert not check(assert_type(pd.notna(pd.NA), bool), bool) assert check(assert_type(pd.isna(pd.NaT), bool), bool) assert not check(assert_type(pd.notna(pd.NaT), bool), bool) assert check(assert_type(pd.isna(None), bool), bool) assert not check(assert_type(pd.notna(None), bool), bool) assert not check(assert_type(pd.isna(2.5), bool), bool) assert check(assert_type(pd.notna(2.5), bool), bool) # Checks for datetime, timedelta, np.datetime64 and np.timedelta64 py_dt = dt.datetime.now() assert check(assert_type(pd.notna(py_dt), bool), bool) assert not check(assert_type(pd.isna(py_dt), bool), bool) py_td = dt.datetime.now() - py_dt assert check(assert_type(pd.notna(py_td), bool), bool) assert not check(assert_type(pd.isna(py_td), bool), bool) np_dt = np.datetime64(py_dt) assert check(assert_type(pd.notna(np_dt), bool), bool) assert not check(assert_type(pd.isna(np_dt), bool), bool) np_td = np.timedelta64(py_td) assert check(assert_type(pd.notna(np_td), bool), bool) assert not check(assert_type(pd.isna(np_td), bool), bool) > np_nat = np.timedelta64("NaT") ^^^^^^^^^^^^^^^^^^^^^ E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead. tests/test_pandas.py:524: DeprecationWarning _____________________ test_pivot_table_aggfunc_numpy_ufunc _____________________ sample_df = A B C D 0 foo one 1.0 10.0 1 foo one 2.0 20.0 2 foo two 3.0 30.0 3 bar two 4.0 40.0 4 bar one 5.0 50.0 5 bar one 6.0 60.0 def test_pivot_table_aggfunc_numpy_ufunc(sample_df: pd.DataFrame) -> None: """Test with df.pivot_table using np.ufunc.""" # Test with pd.pivot_table using np.ufunc > with pytest_warns_bounded( FutureWarning, r"The provided callable.*", lower="2.3.0", ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/test_pandas.py:2450: Failed ________________________ test_pivot_table_aggfunc_list _________________________ sample_df = A B C D 0 foo one 1.0 10.0 1 foo one 2.0 20.0 2 foo two 3.0 30.0 3 bar two 4.0 40.0 4 bar one 5.0 50.0 5 bar one 6.0 60.0 def test_pivot_table_aggfunc_list(sample_df: pd.DataFrame) -> None: """Test with df.pivot_table using list of strings.""" check( assert_type( pd.pivot_table( sample_df, values="C", index="A", columns="B", aggfunc=["sum", "mean"] ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( pd.pivot_table( sample_df, values="C", index="A", columns="B", aggfunc=["min", "max", "count"], ), pd.DataFrame, ), pd.DataFrame, ) > with pytest_warns_bounded( FutureWarning, r"The provided callable.*", lower="2.3.0", ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/test_pandas.py:2589: Failed ________________________ test_pivot_table_aggfunc_dict _________________________ sample_df = A B C D 0 foo one 1.0 10.0 1 foo one 2.0 20.0 2 foo two 3.0 30.0 3 bar two 4.0 40.0 4 bar one 5.0 50.0 5 bar one 6.0 60.0 def test_pivot_table_aggfunc_dict(sample_df: pd.DataFrame) -> None: """Test dict of aggfuncs mapping columns to functions.""" check( assert_type( pd.pivot_table( sample_df, values=["C", "D"], index="A", columns="B", aggfunc={"C": "sum", "D": "mean"}, ), pd.DataFrame, ), pd.DataFrame, ) check( assert_type( pd.pivot_table( sample_df, values=["C", "D"], index="A", columns="B", aggfunc={"C": "min", "D": "max"}, ), pd.DataFrame, ), pd.DataFrame, ) > with pytest_warns_bounded( FutureWarning, r"The provided callable.*", lower="2.3.0", ): E Failed: DID NOT WARN. No warnings of type (,) were emitted. E Emitted warnings: []. tests/test_pandas.py:2657: Failed _____________________________ test_timedelta_range _____________________________ def test_timedelta_range() -> None: check( assert_type( pd.timedelta_range( pd.Timedelta(1, unit="D"), pd.Timedelta(10, unit="D"), periods=10 ), pd.TimedeltaIndex, ), pd.TimedeltaIndex, ) check( assert_type( pd.timedelta_range(dt.timedelta(1), dt.timedelta(10), periods=10), pd.TimedeltaIndex, ), pd.TimedeltaIndex, ) check( assert_type( pd.timedelta_range( > np.timedelta64(86400000000000), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ np.timedelta64(864000000000000), periods=10, ), pd.TimedeltaIndex, ), pd.TimedeltaIndex, ) E DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`).Please use a specific unit instead. tests/test_timefuncs.py:1552: DeprecationWarning =========================== short test summary info ============================ FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values2-list] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values2-tuple] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values2-UserList] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values4-list] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values4-tuple] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values4-UserList] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values5-list] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values5-tuple] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values5-UserList] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values6-list] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values6-tuple] - RuntimeError: Expected type '' b... FAILED tests/arrays/test_numpy_extension_array.py::test_construction_sequence[missing_values6-UserList] - RuntimeError: Expected type '' b... FAILED tests/frame/test_frame.py::test_pivot_table_aggfunc_numpy_ufunc - Failed: DID NOT WARN. No warnings of type (,) were e... FAILED tests/frame/test_frame.py::test_pivot_table_aggfunc_list - Failed: DID NOT WARN. No warnings of type (,) were e... FAILED tests/frame/test_frame.py::test_pivot_table_aggfunc_dict - Failed: DID NOT WARN. No warnings of type (,) were e... FAILED tests/scalars/test_scalars.py::test_timedelta_properties_methods - DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, a... FAILED tests/series/test_agg.py::test_agg_complex - Failed: DID NOT WARN. No warnings of type (,) were e... FAILED tests/test_pandas.py::test_pivot_table_aggfunc_list - Failed: DID NOT WARN. No warnings of type (,) were e... FAILED tests/test_pandas.py::test_pivot_table_aggfunc_dict - Failed: DID NOT WARN. No warnings of type (,) were e... FAILED tests/test_timefuncs.py::test_timedelta_range - DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, a... ==== 23 failed, 2173 passed, 10 skipped, 46 deselected in 300.20s (0:05:00) ====