aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-01 12:27:21 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-01 12:27:21 -0500
commit81c103f75d22580b14f162103232632444c9ec6f (patch)
treefcc8d2fc4572eb4d171168d14acb53e80c9e8498 /setuptools/tests/test_easy_install.py
parent5d6c6a9008fa15d8bd116ba61d968a744d85bda4 (diff)
downloadexternal_python_setuptools-81c103f75d22580b14f162103232632444c9ec6f.tar.gz
external_python_setuptools-81c103f75d22580b14f162103232632444c9ec6f.tar.bz2
external_python_setuptools-81c103f75d22580b14f162103232632444c9ec6f.zip
Expect failure on LC_ALL=C also
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 66601bfe..fa510098 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -430,8 +430,10 @@ class TestScriptHeader:
expected = '#!"%s"\n' % self.exe_with_spaces
assert actual == expected
+ c_type = os.environ.get("LC_CTYPE", os.environ.get("LC_ALL"))
+ is_ascii = c_type in ("C", "POSIX")
@pytest.mark.xfail(
- compat.PY3 and os.environ.get("LC_CTYPE") in ("C", "POSIX"),
+ compat.PY3 and is_ascii,
reason="Test fails in this locale on Python 3"
)
@mock.patch.dict(sys.modules, java=mock.Mock(lang=mock.Mock(System=