Source: pandas Version: 1.1.5+dfsg-2 Severity: serious Justification: FTBFS
Pandas fails to build with Python 3.10. See: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=amd64&ver=1.1.5%2Bdfsg-2%2Bb1&stamp=1637461771&raw=0 =================================== FAILURES =================================== ____ TestDatetime64SeriesComparison.test_comparison_invalid[None-DataFrame] ____ left = 0 1 2 3 4 0 0 1 2 3 4 right = 0 1 2 3 4 0 2001-01-01 2001-01-02 2001-01-03 2001-01-04 2001-01-05 box = <class 'pandas.core.frame.DataFrame'> def assert_invalid_comparison(left, right, box): """ Assert that comparison operations with mismatched types behave correctly. Parameters ---------- left : np.ndarray, ExtensionArray, Index, or Series right : object box : {pd.DataFrame, pd.Series, pd.Index, tm.to_array} """ # Not for tznaive-tzaware comparison # Note: not quite the same as how we do this for tm.box_expected xbox = box if box is not Index else np.array result = left == right expected = xbox(np.zeros(result.shape, dtype=np.bool_)) tm.assert_equal(result, expected) result = right == left tm.assert_equal(result, expected) result = left != right tm.assert_equal(result, ~expected) result = right != left tm.assert_equal(result, ~expected) msg = "|".join( [ "Invalid comparison between", "Cannot compare type", "not supported between", "invalid type promotion", ( # GH#36706 npdev 1.20.0 2020-09-28 r"The DTypes <class 'numpy.dtype\[datetime64\]'> and " r"<class 'numpy.dtype\[int64\]'> do not have a common DType. " "For example they cannot be stored in a single array unless the " "dtype is `object`." ), ] ) with pytest.raises(TypeError, match=msg): > left < right pandas/tests/arithmetic/common.py:89: Looks like upstream has got there, but a quick search didn't find the relevant patches, yet: https://github.com/pandas-dev/pandas/commit/e7efd02c71c48c7968b2f8fdb845a0b0bf61a3fa SR