Xfail NaN <-> NaT tests on non-x86 and warn on cast
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Thu, 9 Apr 2020 03:11:32 +0000 (04:11 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 9 Apr 2020 03:11:32 +0000 (04:11 +0100)
commitae96784395b943b9e74f07df076cf13974405f53
tree492b9794ac294f787beec20a6fb06a4018d71359
parent7241c92bebbc479d500b43572900a497b7a6302c
Xfail NaN <-> NaT tests on non-x86 and warn on cast

pd.Series([np.nan]).astype('datetime64[ns]')[0] = pd.NaT on x86
but 1970-01-01 on arm* because float NaN -> int is undefined:
https://github.com/numpy/numpy/issues/8325
https://github.com/pandas-dev/pandas/issues/17792
https://github.com/pandas-dev/pandas/issues/26964

On s390x it's the maximum _positive_ value (2**63-1 ns = year 2262)

Author: Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/877754

Gbp-Pq: Name xfail_tests_nonintel_nannat.patch
pandas/core/dtypes/cast.py
pandas/tests/dtypes/cast/test_downcast.py
pandas/tests/frame/test_analytics.py
pandas/tests/frame/test_indexing.py
pandas/tests/indexes/datetimes/test_datetime.py
pandas/tests/reductions/test_reductions.py
pandas/tests/series/test_constructors.py
pandas/tests/test_algos.py