summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-13 23:41:57 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-13 23:41:57 (GMT)
commitd24fc5d7c4baed7b0abcf49f06e3030ca61692f7 (patch)
tree49758ca3bbca58e9cd092893dc86ee6205277eb5
parent052a04d34a3841996af59962b038f05af63abacc (diff)
downloadcpython-d24fc5d7c4baed7b0abcf49f06e3030ca61692f7.zip
cpython-d24fc5d7c4baed7b0abcf49f06e3030ca61692f7.tar.gz
cpython-d24fc5d7c4baed7b0abcf49f06e3030ca61692f7.tar.bz2
test_sys: Remove workaround #8611
It looks like it is no more needed: Python 3.2 is slowly able to support non-ascii paths with an ascii locale.
-rw-r--r--Lib/test/support.py8
-rw-r--r--Lib/test/test_sys.py3
2 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index df3e493..08ce0a0 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -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")
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 6e8aa25..8c3a1db 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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