diff options
author | tarek <none@none> | 2009-12-11 00:26:33 +0100 |
---|---|---|
committer | tarek <none@none> | 2009-12-11 00:26:33 +0100 |
commit | 7177009424e0afa0dffb1d6de5dc46dab24165c6 (patch) | |
tree | 27f701c4b7c47a69c31727ad817156659a9989d8 /setuptools/tests/test_resources.py | |
parent | b9554b5bc4ca05034d3b9dce876b684fd0482c4a (diff) | |
download | external_python_setuptools-7177009424e0afa0dffb1d6de5dc46dab24165c6.tar.gz external_python_setuptools-7177009424e0afa0dffb1d6de5dc46dab24165c6.tar.bz2 external_python_setuptools-7177009424e0afa0dffb1d6de5dc46dab24165c6.zip |
avoid running test_get_script_header_jython_workaround undr some py3 environments fixes #103
--HG--
branch : distribute
extra : rebase_source : a1a3381e889db52b3c81301dbd521f7266e254b8
Diffstat (limited to 'setuptools/tests/test_resources.py')
-rw-r--r-- | setuptools/tests/test_resources.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py index d805d02a..5cb1baf0 100644 --- a/setuptools/tests/test_resources.py +++ b/setuptools/tests/test_resources.py @@ -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 |