Skip to content

CI: Failing NumpyDev #42381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lithomas1 opened this issue Jul 5, 2021 · 0 comments · Fixed by #42413
Closed

CI: Failing NumpyDev #42381

lithomas1 opened this issue Jul 5, 2021 · 0 comments · Fixed by #42413
Labels
CI Continuous Integration Compat pandas objects compatability with Numpy or Python functions
Milestone

Comments

@lithomas1
Copy link
Member

https://github.com/pandas-dev/pandas/runs/2985248923

=================================== FAILURES ===================================
__________ TestTimedeltaMultiplicationDivision.test_td_div_nan[nan1] ___________
[gw0] linux -- Python 3.9.5 /usr/share/miniconda/envs/pandas-dev/bin/python

self = <pandas.tests.scalar.timedelta.test_arithmetic.TestTimedeltaMultiplicationDivision object at 0x7f2d87ba9f40>
nan = nan

    @pytest.mark.parametrize(
        "nan",
        [
            np.nan,
            pytest.param(
                np.float64("NaN"),
                marks=pytest.mark.xfail(
                    # Works on numpy dev only in python 3.9
                    is_numpy_dev and not compat.PY39,
                    raises=RuntimeWarning,
                    reason="https://github.com/pandas-dev/pandas/issues/31992",
                ),
            ),
            float("nan"),
        ],
    )
    def test_td_div_nan(self, nan):
        # np.float64('NaN') has a 'dtype' attr, avoid treating as array
        td = Timedelta(10, unit="d")
        result = td / nan
        assert result is NaT
    
>       result = td // nan

pandas/tests/scalar/timedelta/test_arithmetic.py:455: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   return Timedelta(self.value // other, unit='ns')
E   RuntimeWarning: invalid value encountered in double_scalars

pandas/_libs/tslibs/timedeltas.pyx:1465: RuntimeWarning
@lithomas1 lithomas1 added the CI Continuous Integration label Jul 5, 2021
@simonjayhawkins simonjayhawkins added the Compat pandas objects compatability with Numpy or Python functions label Jul 5, 2021
@lithomas1 lithomas1 added this to the 1.4 milestone Jul 5, 2021
@jreback jreback modified the milestones: 1.4, 1.3.1 Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants