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 doko
Recipients doko, dstufft, eric.araujo, ncoghlan, vstinner
Date 2018-09-26.08:06:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537949180.44.0.545547206417.issue34806@psf.upfronthosting.co.za>
In-reply-to
Content
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'

----------------------------------------------------------------------
History
Date User Action Args
2018-09-26 08:06:20dokosetrecipients: + doko, ncoghlan, vstinner, eric.araujo, dstufft
2018-09-26 08:06:20dokosetmessageid: <1537949180.44.0.545547206417.issue34806@psf.upfronthosting.co.za>
2018-09-26 08:06:20dokolinkissue34806 messages
2018-09-26 08:06:20dokocreate