You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HDF5 and Stata I/O are broken on some architectures
Fix some issues, warn on use and xfail tests for the remainder
armhf TestHDF5Store::test*encoding only sometimes crashes
(1.1.3+dfsg-1 passed on build but failed autopkgtest)
HDF5 and Stata are known to fail on big-endian architectures
Stata also fails on qemu-ppc64el, but not real ppc64el
Author: Andreas Tille <[email protected]>, Graham Inggs <[email protected]>, Yaroslav Halchenko <[email protected]>, Rebecca N. Palmer <[email protected]>
Bug-Debian: https://bugs.debian.org/877419
Forwarded: no
Gbp-Pq: Name xfail_tests_nonintel_io.patch
Copy file name to clipboardExpand all lines: pandas/io/pytables.py
+10-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,10 @@
9
9
importre
10
10
fromtypingimportTYPE_CHECKING, Any, Dict, List, Optional, Tuple, Type, Union
11
11
importwarnings
12
+
importplatform
13
+
importre
14
+
frompandas.compatimportis_platform_little_endian
15
+
warn_hdf_platform="Non-x86 system detected, HDF(5) format I/O may give wrong results (particularly on files created with older versions) or crash - https://bugs.debian.org/877419"ifnotbool(re.match('i.?86|x86',platform.uname()[4])) elseFalse
12
16
13
17
importnumpyasnp
14
18
@@ -527,6 +531,8 @@ def __init__(
527
531
fletcher32: bool=False,
528
532
**kwargs,
529
533
):
534
+
ifwarn_hdf_platform:
535
+
warnings.warn(warn_hdf_platform)
530
536
531
537
if"format"inkwargs:
532
538
raiseValueError("format is not a defined argument for HDFStore")
Copy file name to clipboardExpand all lines: pandas/io/stata.py
+5
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,9 @@
29
29
Union,
30
30
)
31
31
importwarnings
32
+
importplatform
33
+
importre
34
+
warn_stata_platform="Non-x86 system detected, Stata format I/O may give wrong results (particularly on strings) - https://bugs.debian.org/877419"ifnotbool(re.match('i.?86|x86',platform.uname()[4])) elseFalse
32
35
33
36
fromdateutil.relativedeltaimportrelativedelta
34
37
importnumpyasnp
@@ -875,6 +878,8 @@ def __init__(self):
875
878
# NOTE: the byte type seems to be reserved for categorical variables
876
879
# with a label, but the underlying variable is -127 to 100
is_crashing_arch=bool((platform.uname()[4].startswith('arm') orplatform.uname()[4].startswith('aarch')) andsys.maxsize<2**33) # meant for armhf, though this form will also skip on armel - uname = kernel arch
marks=pytest.mark.xfail(condition=notis_platform_little_endian(),reason="known failure of hdf on non-little endian",strict=False,raises=AttributeError)),
0 commit comments