[Python-Dev] [Python-checkins] cpython: removed spurious output (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Tue May 31 07🔞28 CEST 2011
- Previous message: [Python-Dev] cpython: removed spurious output
- Next message: [Python-Dev] [Python-checkins] cpython: Close #12028: Make threading._get_ident() public, rename it to
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, May 30, 2011 at 8:25 PM, tarek.ziade <python-checkins at python.org> wrote:
+ oldout = sys.stdout + sys.stderr = StringIO() + try: + dist = self.runsetup('installdist', '--prefix=' + self.rootdir) + finally: + sys.sterr = oldout
There's actually a helper for this in test.support:
with support.captured_stderr(): dist = self.run_setup('install_dist', '--prefix=' + self.root_dir)
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-Dev] cpython: removed spurious output
- Next message: [Python-Dev] [Python-checkins] cpython: Close #12028: Make threading._get_ident() public, rename it to
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]