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 pitrou
Recipients georg.brandl, giampaolo.rodola, gregory.p.smith, pitrou, rosslagerwall
Date 2011-01-02.18:27:12
SpamBayes Score 2.9325523e-05
Marked as misclassified No
Message-id <1293992830.3733.10.camel@localhost.localdomain>
In-reply-to <1293991717.46.0.660046429073.issue10806@psf.upfronthosting.co.za>
Content
> Attached is a patch which basically uses fcntl if necessary to remove
> the close-on-exec flag, and tests.

Python adds extra output at the end of stderr when compiled in debug
mode. Therefore you first have to strip that output, like this:

            out, err = subprocess.Popen(...).communicate()
            err = support.strip_python_stderr(err)
            self.assertEqual((out, err), (b'apple', b'orange'))

Otherwise, looks good, thank you.
History
Date User Action Args
2011-01-02 18:27:14pitrousetrecipients: + pitrou, georg.brandl, gregory.p.smith, giampaolo.rodola, rosslagerwall
2011-01-02 18:27:12pitroulinkissue10806 messages
2011-01-02 18:27:12pitroucreate