On Mon, May 30, 2011 at 8:25 PM, tarek.ziade <python-checkins at 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 at gmail.com | Brisbane, Australia
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4