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 vstinner
Recipients Giovanni.Bajo, georg.brandl, gregory.p.smith, milko.krachounov, ned.deily, paul.moore, vstinner
Date 2010-12-11.17:12:27
SpamBayes Score 4.8849813e-15
Marked as misclassified No
Message-id <1292087549.13.0.236935835658.issue7213@psf.upfronthosting.co.za>
In-reply-to
Content
test_pipe_cloexec_unix_tools() is specific to UNIX/BSD because it requires cat and grep programs. You should try to reuse the Python interpreter to have a portable test (eg. working on Windows), as you did with fd_status.py.


+        data = b'aaaaaaaaaaaaaaaaaaaa\n'
+        subdata = b'aaa'
+        assert subdata in data, "Test broken"

Use maybe subdata = data[:3] to avoid an assertion.

I don't understand why do you talk about "atomicity". Do you test add non-atomic operations? Was subprocess atomic?

If I understood correctly, you are fixing a specific issue which can be called something like "subprocess: close pipes on exec(), set FD_CLOEXEC flag to all pipes", and no more changing the default value of close_fds. Can you update the title please?
History
Date User Action Args
2010-12-11 17:12:29vstinnersetrecipients: + vstinner, georg.brandl, gregory.p.smith, paul.moore, ned.deily, milko.krachounov, Giovanni.Bajo
2010-12-11 17:12:29vstinnersetmessageid: <1292087549.13.0.236935835658.issue7213@psf.upfronthosting.co.za>
2010-12-11 17:12:27vstinnerlinkissue7213 messages
2010-12-11 17:12:27vstinnercreate