diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-01 12:27:21 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-01 12:27:21 -0500 |
commit | fb14bb445f6ef62981dd5225621d0ba0b2ec41bf (patch) | |
tree | 91585939eb82109ec1a8e33349158fe92077370f | |
parent | 631325c586884f806e3765d5745141124c1f4797 (diff) | |
download | python-setuptools-bitbucket-fb14bb445f6ef62981dd5225621d0ba0b2ec41bf.tar.gz |
Expect failure on LC_ALL=C also
-rw-r--r-- | setuptools/tests/test_easy_install.py | 4 |
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= |