Peter Wu added the comment:
I just ran into this issue on Linux when piping a binary file to stdin resulted
in a UnicodeDecodeError while trying to read a byte from the stream. Passing
/dev/stdin is a workaround that does not require modifications to an
application.
As for the proposed PR
New submission from Peter Wu:
I had a stale ~/.gdbinit file which tried to executed python code causing an
exception. The tests should probably run with `-nx` or `-nh` to avoid reading
~/.gdbinit.
--
components: Tests
messages: 225245
nosy: lekensteyn
priority: normal
severity: normal
New submission from Peter Wu:
Files created by `git archive` are not understood by the Python interpreter.
This could be caused by the additional comment (for the commit hash) in the
file.
echo 'print(1)' > __main__.py
git init && git add __main__.py && git commit