New submission from Matthias Klose <[email protected]>:
two distutils tests fail when running the tests from an installed location. 3.7
branch 20180925, succeeded with a 20180911 snapshot. Is there any locale
setting required?
======================================================================
ERROR: test_non_ascii (distutils.tests.test_log.TestLog)
(errors='surrogateescape')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/distutils/tests/test_log.py", line 26, in
test_non_ascii
log.debug('Dεbug\tMėssãge')
File "/usr/lib/python3.7/distutils/log.py", line 41, in debug
self._log(DEBUG, msg, args)
File "/usr/lib/python3.7/distutils/log.py", line 34, in _log
stream.write('%s\n' % msg)
File "/usr/lib/python3.7/encodings/cp437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0117' in position
7: character maps to <undefined>
======================================================================
ERROR: test_find_executable (distutils.tests.test_spawn.SpawnTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/distutils/tests/test_spawn.py", line 95, in
test_find_executable
rv = find_executable(program)
File "/usr/lib/python3.7/distutils/spawn.py", line 176, in find_executable
path = os.environ['PATH']
File "/usr/lib/python3.7/os.py", line 678, in __getitem__
raise KeyError(key) from None
KeyError: 'PATH'
----------------------------------------------------------------------
----------
components: Distutils
keywords: 3.7regression
messages: 326428
nosy: doko, dstufft, eric.araujo, ncoghlan, vstinner
priority: normal
severity: normal
status: open
title: distutils tests fail with recent 3.7 branch
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34806>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com