fixed the test_uninstall patch

This commit is contained in:
Tarek Ziade 2011-05-30 19:16:49 +02:00
parent 371df05740
commit 1cc9bbd751
1 changed files with 2 additions and 2 deletions

View File

@ -80,12 +80,12 @@ class UninstallTestCase(support.TempdirManager,
if not dirname:
dirname = self.make_dist(name, **kw)
os.chdir(dirname)
old_out = sys.stdout
old_out = sys.stderr
sys.stderr = StringIO()
try:
dist = self.run_setup('install_dist', '--prefix=' + self.root_dir)
finally:
sys.sterr = old_out
sys.stderr = old_out
install_lib = self.get_path(dist, 'purelib')
return dist, install_lib