31 May
2011
31 May
'11
5:18 a.m.
On Mon, May 30, 2011 at 8:25 PM, tarek.ziade <python-checkins@python.org> wrote:
+ old_out = sys.stdout + sys.stderr = StringIO() + try: + dist = self.run_setup('install_dist', '--prefix=' + self.root_dir) + finally: + sys.sterr = old_out
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@gmail.com | Brisbane, Australia