Public bug reported: pandas 2.3.3+dfsg-3 FTBFS on amd64v3 in Resolute:
https://people.canonical.com/~ginggs/ftbfs-report/test- rebuild-20260320-resolute-resolute.html =================================== FAILURES =================================== _______________ test_rolling_var_numerical_issues[var-1-values0] _______________ func = 'var', third_value = 1, values = [5e+33, 0, 0.5, 0.5, 2, 0] @pytest.mark.xfail( not (is_platform_x86 and IS64), strict=False, reason="GH 38921", ) @pytest.mark.parametrize( ("func", "third_value", "values"), [ ("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]), ("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]), ("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]), ("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]), ], ) def test_rolling_var_numerical_issues(func, third_value, values): # GH: 37051 ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1]) result = getattr(ds.rolling(2), func)() expected = Series([np.nan] + values) > tm.assert_series_equal(result, expected) pandas/tests/window/test_rolling.py:1201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas/_libs/testing.pyx:55: in pandas._libs.testing.assert_almost_equal ??? _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E AssertionError: Series are different E E Series values are different (42.85714 %) E [index]: [0, 1, 2, 3, 4, 5, 6] E [left]: [nan, 5e+33, 0.0, -2.7212384506478592e+17, -2.7212384506478592e+17, -2.7212384506478592e+17, 0.0] E [right]: [nan, 5e+33, 0.0, 0.5, 0.5, 2.0, 0.0] E At positional index 3, first diff: -2.7212384506478592e+17 != 0.5 pandas/_libs/testing.pyx:173: AssertionError ** Affects: pandas (Ubuntu) Importance: Undecided Status: New ** Tags: amd64v3 ftbfs update-excuse ** Description changed: - pandas 2.3.3+dfsg-3 FTBFS om amd64v3 in Resolute: + pandas 2.3.3+dfsg-3 FTBFS on amd64v3 in Resolute: https://people.canonical.com/~ginggs/ftbfs-report/test- rebuild-20260320-resolute-resolute.html - =================================== FAILURES =================================== _______________ test_rolling_var_numerical_issues[var-1-values0] _______________ func = 'var', third_value = 1, values = [5e+33, 0, 0.5, 0.5, 2, 0] - @pytest.mark.xfail( - not (is_platform_x86 and IS64), - strict=False, - reason="GH 38921", - ) - @pytest.mark.parametrize( - ("func", "third_value", "values"), - [ - ("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]), - ("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]), - ("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]), - ("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]), - ], - ) - def test_rolling_var_numerical_issues(func, third_value, values): - # GH: 37051 - ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1]) - result = getattr(ds.rolling(2), func)() - expected = Series([np.nan] + values) + @pytest.mark.xfail( + not (is_platform_x86 and IS64), + strict=False, + reason="GH 38921", + ) + @pytest.mark.parametrize( + ("func", "third_value", "values"), + [ + ("var", 1, [5e33, 0, 0.5, 0.5, 2, 0]), + ("std", 1, [7.071068e16, 0, 0.7071068, 0.7071068, 1.414214, 0]), + ("var", 2, [5e33, 0.5, 0, 0.5, 2, 0]), + ("std", 2, [7.071068e16, 0.7071068, 0, 0.7071068, 1.414214, 0]), + ], + ) + def test_rolling_var_numerical_issues(func, third_value, values): + # GH: 37051 + ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1]) + result = getattr(ds.rolling(2), func)() + expected = Series([np.nan] + values) > tm.assert_series_equal(result, expected) - pandas/tests/window/test_rolling.py:1201: - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + pandas/tests/window/test_rolling.py:1201: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pandas/_libs/testing.pyx:55: in pandas._libs.testing.assert_almost_equal - ??? - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + ??? + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E AssertionError: Series are different - E + E E Series values are different (42.85714 %) E [index]: [0, 1, 2, 3, 4, 5, 6] E [left]: [nan, 5e+33, 0.0, -2.7212384506478592e+17, -2.7212384506478592e+17, -2.7212384506478592e+17, 0.0] E [right]: [nan, 5e+33, 0.0, 0.5, 0.5, 2.0, 0.0] E At positional index 3, first diff: -2.7212384506478592e+17 != 0.5 pandas/_libs/testing.pyx:173: AssertionError -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2146928 Title: pandas: FTBFS in Resolute (amd64v3) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pandas/+bug/2146928/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
