Skip to content

BUG: pandas/tests/arrays/floating/test_construction.py:test_floating_array_disallows_float16 fails on de_CH locale #45013

Closed
@burnpanck

Description

@burnpanck

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the master branch of pandas.

Reproducible Example

pytest pandas/tests/arrays/floating/test_construction.py

Issue Description

Running the current test-suite with the current locale set to de_CH fails due to the that specific test marking itself as xfail unless the locale is en_US. However, the test actually passes.

Expected Behavior

The full test-suite passes under any system locale - specifically also de_CH.

Installed Versions

INSTALLED VERSIONS ------------------ commit : 3a4821e python : 3.9.8.final.0 python-bits : 64 OS : Darwin OS-release : 21.1.0 Version : Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 machine : arm64 processor : arm byteorder : little LC_ALL : de_CH.UTF-8 LANG : en_GB.UTF-8 LOCALE : de_CH.UTF-8

pandas : 1.4.0.dev0+1446.g3a4821e055
numpy : 1.20.3
pytz : 2021.3
dateutil : 2.8.2
pip : 21.3.1
setuptools : 58.1.0
Cython : 0.29.26
pytest : 6.2.5
hypothesis : 6.31.6
sphinx : None
blosc : 1.10.6
feather : None
xlsxwriter : None
lxml.etree : 4.7.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.30.1
pandas_datareader: None
bs4 : 4.10.0
bottleneck : None
fsspec : 2021.11.1
fastparquet : 0.7.2
gcsfs : None
matplotlib : None
numexpr : 2.8.1
odfpy : None
openpyxl : 3.0.9
pandas_gbq : None
pyarrow : 6.0.1
pyxlsb : None
s3fs : 2021.11.1
scipy : 1.7.3
sqlalchemy : 1.4.28
tables : 3.6.1
tabulate : None
xarray : 0.20.2
xlrd : None
xlwt : None
numba : None

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugLocalizationInternationalization of dataUnreliable TestUnit tests that occasionally fail

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions