Skip to content

Commit d175c36

Browse files
author
Sylvain MARIE
committed
Added a non-utf8 locale in the it_IT runner. Added the zh_CN.utf8 locale in the tests
1 parent a25f3a9 commit d175c36

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/posix.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ jobs:
4040
- env_file: actions-38.yaml
4141
pattern: "not slow and not network and not single_cpu"
4242
extra_apt: "language-pack-it"
43+
# Use the utf8 version as the default, it has no bad side-effect.
4344
lang: "it_IT.utf8"
4445
lc_all: "it_IT.utf8"
45-
name: "Locale: it_IT.utf8"
46+
# Also install it_IT (its encoding is ISO8859-1) but do not activate it.
47+
# It will be temporarily activated during tests with locale.setlocale
48+
extra_loc: "it_IT"
49+
name: "Locale: it_IT"
4650
- env_file: actions-38.yaml
4751
pattern: "not slow and not network and not single_cpu"
4852
extra_apt: "language-pack-zh-hans"
@@ -52,7 +56,7 @@ jobs:
5256
# Also install zh_CN (its encoding is gb2312) but do not activate it.
5357
# It will be temporarily activated during tests with locale.setlocale
5458
extra_loc: "zh_CN"
55-
name: "Locale: zh_CN.utf8 + extra zh_CN (gb2312)"
59+
name: "Locale: zh_CN"
5660
- env_file: actions-38.yaml
5761
pattern: "not slow and not network and not single_cpu"
5862
pandas_data_manager: "array"

pandas/conftest.py

+2
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,8 @@ def utc_fixture(request):
12071207
params=[
12081208
pytest.param(None, id=str(locale.getlocale())),
12091209
"it_IT.utf8",
1210+
"it_IT",
1211+
"zh_CN.utf8",
12101212
"zh_CN",
12111213
]
12121214
)

0 commit comments

Comments
 (0)