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 amaury.forgeotdarc
Recipients David.Sankel, amaury.forgeotdarc, brian.curtin, christian.heimes, christoph, davidsarah, ezio.melotti, lemburg, mark, pitrou, ssbarnea, tim.golden, tzot, v+python, vstinner
Date 2011-01-10.22:47:09
SpamBayes Score 0.0008901673
Marked as misclassified No
Message-id <1294699630.31.0.80037247252.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
Even if python.exe starts normally, py.test for example uses os.dup2() to redirect the file descriptors 1 and 2 to temporary files. sys.stdout.fileno() is still 1, the STD_OUTPUT_HANDLE did not change, but normal print() now goes to a file; but the proposed script won't detect this and will write to the console...
Somehow we should extract the file handle from the file descriptor, with a call to _get_osfhandle() for example.
History
Date User Action Args
2011-01-10 22:47:10amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, lemburg, tzot, pitrou, vstinner, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, ssbarnea, brian.curtin, davidsarah, David.Sankel
2011-01-10 22:47:10amaury.forgeotdarcsetmessageid: <1294699630.31.0.80037247252.issue1602@psf.upfronthosting.co.za>
2011-01-10 22:47:09amaury.forgeotdarclinkissue1602 messages
2011-01-10 22:47:09amaury.forgeotdarccreate