Commits

Anonymous committed 8918b17

avoid running test_get_script_header_jython_workaround undr some py3 environments fixes #103

  • Participants
  • Parent commits f733db9
  • Branches 0.6-maintenance

Comments (0)

Files changed (2)

 * 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

File setuptools/tests/test_resources.py

                              '#!%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