This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, koobs, vstinner
Date 2018-04-25.14:14:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524665655.9.0.682650639539.issue33354@psf.upfronthosting.co.za>
In-reply-to
Content
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@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@python.org>
---


Maybe the test should be skipped if the filesystem encoding cannot encode the path?
History
Date User Action Args
2018-04-25 14:14:15vstinnersetrecipients: + vstinner, christian.heimes, koobs
2018-04-25 14:14:15vstinnersetmessageid: <1524665655.9.0.682650639539.issue33354@psf.upfronthosting.co.za>
2018-04-25 14:14:15vstinnerlinkissue33354 messages
2018-04-25 14:14:15vstinnercreate