[New-bugs-announce] [issue33354] Python2, FreeBSD: test_ssl fails on non-ASCII path
STINNER Victor
report at bugs.python.org
Wed Apr 25 10:14:15 EDT 2018
New submission from STINNER Victor <vstinner at redhat.com>:
The FreeBSD 2.7 buildbot is failing because of test_ssl:
test test_ssl failed -- Traceback (most recent call last):
File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/test/test_ssl.py", line 1005, in test_load_dh_params
shutil.copy(DHFILE, fname)
File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/shutil.py", line 131, in copy
if os.path.isdir(dst):
File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/genericpath.py", line 49, in isdir
st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 18: ordinal not in range(128)
======================================================================
ERROR: test_load_dh_params (test.test_ssl.ContextTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/test/test_ssl.py", line 1005, in test_load_dh_params
shutil.copy(DHFILE, fname)
File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/shutil.py", line 131, in copy
if os.path.isdir(dst):
File "/usr/home/buildbot/python/2.7.koobs-freebsd10/build/Lib/genericpath.py", line 49, in isdir
st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 18: ordinal not in range(128)
test.pythoninfo:
* os.cwd: /usr/home/buildbot/python/2.7.koobs-freebsd10/build
* sys.filesystem_encoding: US-ASCII
The failure is likely related to the commit 6e8f395001b026daea047cf225dcca5a973ae824, bpo-25404:
---
commit 6e8f395001b026daea047cf225dcca5a973ae824
Author: Christian Heimes <christian at python.org>
Date: Sun Feb 25 09:48:02 2018 +0100
bpo-25404: SSLContext.load_dh_params() non-ASCII path (GH-3459)
SSLContext.load_dh_params() now supports non-ASCII path.
Signed-off-by: Christian Heimes <christian at python.org>
---
Maybe the test should be skipped if the filesystem encoding cannot encode the path?
----------
assignee: christian.heimes
components: FreeBSD, SSL
messages: 315734
nosy: christian.heimes, koobs, vstinner
priority: normal
severity: normal
status: open
title: Python2, FreeBSD: test_ssl fails on non-ASCII path
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33354>
_______________________________________
More information about the New-bugs-announce
mailing list