Author amaury.forgeotdarc
Recipients David.Sankel, amaury.forgeotdarc, brian.curtin, christian.heimes, christoph, davidsarah, ezio.melotti, haypo, lemburg, mark, pitrou, sorin, tim.golden, tzot, v+python
Date 2011-01-10.22:47:09
SpamBayes Score 0.000890167
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, haypo, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, sorin, 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