]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45453: Fix test_embed.StdPrinterTests (GH-28916)
authorVictor Stinner <vstinner@python.org>
Wed, 13 Oct 2021 03:24:33 +0000 (05:24 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 03:24:33 +0000 (05:24 +0200)
commit678433f25e0d08dad7edf72be8f0cf9420e4ed2c
treed57da766339c736ece93e411c315da866008bd94
parentc63623a0a6892ce8683dbf8c769793ea897e6ba8
bpo-45453: Fix test_embed.StdPrinterTests (GH-28916)

test_embed.StdPrinterTests now always use the file descriptor 1 for
stdout, rather than using sys.__stdout__.fileno().
PyFile_NewStdPrinter() does crash if the argument is not 1 or 2.

Fix also a few pyflakes warnings: remove unused import and variables.
Lib/test/test_embed.py