Commit 71770094 authored by tarek's avatar tarek

avoid running test_get_script_header_jython_workaround undr some py3 environments fixes #103

--HG--
branch : distribute
extra : rebase_source : a1a3381e889db52b3c81301dbd521f7266e254b8
parent b9554b5b
......@@ -22,6 +22,8 @@ CHANGES
* Issue 101: Allowing ``os.devnull`` in Sandbox
* Issue 92: Fixed the "no eggs" found error with MacPort
(platform.mac_ver() fails)
* Issue 103: test_get_script_header_jython_workaround not run
anymore under py3 with C or POSIX local. Contributed by Arfrever.
-----
0.6.8
......
......@@ -533,6 +533,10 @@ class ScriptHeaderTests(TestCase):
'#!%s -x\n' % self.non_ascii_exe)
def test_get_script_header_jython_workaround(self):
# This test doesn't work with Python 3 in some locales
if (sys.version_info >= (3,) and os.environ.get("LC_CTYPE")
in (None, "C", "POSIX")):
return
platform = sys.platform
sys.platform = 'java1.5.0_13'
stdout = sys.stdout
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment