]> granicus.if.org Git - python/commitdiff
test_sys: Remove workaround #8611
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 13 Oct 2010 23:41:57 +0000 (23:41 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 13 Oct 2010 23:41:57 +0000 (23:41 +0000)
It looks like it is no more needed: Python 3.2 is slowly able to support
non-ascii paths with an ascii locale.

Lib/test/support.py
Lib/test/test_sys.py

index df3e493cc71d141d293f71c601fed3955bc8db28..08ce0a05fae6779cfd33013d8dbb45f9f99b911b 100644 (file)
@@ -1327,11 +1327,3 @@ def strip_python_stderr(stderr):
     """
     stderr = re.sub(br"\[\d+ refs\]\r?\n?$", b"", stderr).strip()
     return stderr
-
-def workaroundIssue8611():
-    try:
-        sys.executable.encode('ascii')
-    except UnicodeEncodeError:
-        raise unittest.SkipTest(
-            "Issue #8611: Python doesn't support ascii locale encoding "
-            "with an non-ascii path")
index 6e8aa254d73791a18d59a144a204939005112507..8c3a1dbc74b1cacaf9f7e6482d1091785392a75c 100644 (file)
@@ -502,9 +502,6 @@ class SysModuleTest(unittest.TestCase):
     @unittest.skipIf(sys.platform == 'win32',
                      'Windows has a native unicode API')
     def test_undecodable_code(self):
-        # Raise SkipTest() if sys.executable is not encodable to ascii
-        test.support.workaroundIssue8611()
-
         undecodable = b"\xff"
         env = os.environ.copy()
         # Use C locale to get ascii for the locale encoding