STINNER Victor <[email protected]> added the comment:
The issue is not specific to FreeBSD, it depends on the locale (on the Python
filesystem encoding).
I reproduced the issue on Linux:
vstinner@apu$ LC_ALL=C ./python -m test test_ssl
Run tests sequentially
0:00:00 load avg: 0.27 [1/1] test_ssl
test test_ssl failed -- Traceback (most recent call last):
File "/home/vstinner/prog/python/2.7/Lib/test/test_ssl.py", line 1005, in
test_load_dh_params
shutil.copy(DHFILE, fname)
File "/home/vstinner/prog/python/2.7/Lib/shutil.py", line 131, in copy
if os.path.isdir(dst):
File "/home/vstinner/prog/python/2.7/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)
1 test failed:
test_ssl
Total duration: 1 sec
Tests result: FAILURE
----------
components: -FreeBSD
nosy: -koobs
title: Python2, FreeBSD: test_ssl fails on non-ASCII path -> Python2: test_ssl
fails on non-ASCII path
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue33354>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com