summaryrefslogtreecommitdiff
path: root/Lib/test/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index d0e84c72ab..814d06198e 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -1277,3 +1277,11 @@ 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")