We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef6eb3e commit 24b8e38Copy full SHA for 24b8e38
pandas/_testing/__init__.py
@@ -26,6 +26,7 @@
26
)
27
28
from pandas._typing import Dtype
29
+from pandas.compat import is_platform_linux
30
31
from pandas.core.dtypes.common import (
32
is_float_dtype,
@@ -191,9 +192,11 @@
191
192
EMPTY_STRING_PATTERN = re.compile("^$")
193
194
# Our Linux CI environments install the associated language packs
-TESTING_LOCALES = [
195
- loc for loc in get_locales() or [] if loc in {"it_IT.UTF-8", "zh_CN.UTF-8"}
196
-]
+if os.environ.get("PANDAS_CI", "0") == "1" and is_platform_linux():
+ ci_locales = get_locales() or []
197
+else:
198
+ ci_locales = []
199
+TESTING_LOCALES = [loc for loc in ci_locales if loc in {"it_IT.UTF-8", "zh_CN.UTF-8"}]
200
201
# set testing_mode
202
_testing_mode_warnings = (DeprecationWarning, ResourceWarning)
0 commit comments