[issue12915] Add inspect.locate and inspect.resolve

Michael Felt report at bugs.python.org
Sun Mar 1 02:12:09 EST 2020


Michael Felt <aixtools at felt.demon.nl> added the comment:

I am very busy with normal work this week. However I’ll attempt to add a pr with your (Victor”s)  suggestion. 

Sent from my iPhone

> On 29 Feb 2020, at 23:36, STINNER Victor <report at bugs.python.org> wrote:
> 
> 
> STINNER Victor <vstinner at python.org> added the comment:
> 
>> File "/home/buildbot/buildarea/3.x.aixtools-aix-power6/build/Lib/test/test_pkgutil.py", line 249, in test_name_resolution
>>   os.makedirs(d, exist_ok=True)
> (...)
>> UnicodeEncodeError: 'latin-1' codec can't encode characters in position 17-19: ordinal not in range(256)
> 
> The test should be modified to skip the current uw value in the loop ("continue") if the filesystem encoding cannot encode the Unicode string (catch UnicodeEncodeError on the makedirs() call).
> 
> ----------
> 
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue12915>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue12915>
_______________________________________


More information about the Python-bugs-list mailing list