mirror of https://github.com/python/cpython
fixed the test_uninstall patch
This commit is contained in:
parent
371df05740
commit
1cc9bbd751
|
@ -80,12 +80,12 @@ class UninstallTestCase(support.TempdirManager,
|
||||||
if not dirname:
|
if not dirname:
|
||||||
dirname = self.make_dist(name, **kw)
|
dirname = self.make_dist(name, **kw)
|
||||||
os.chdir(dirname)
|
os.chdir(dirname)
|
||||||
old_out = sys.stdout
|
old_out = sys.stderr
|
||||||
sys.stderr = StringIO()
|
sys.stderr = StringIO()
|
||||||
try:
|
try:
|
||||||
dist = self.run_setup('install_dist', '--prefix=' + self.root_dir)
|
dist = self.run_setup('install_dist', '--prefix=' + self.root_dir)
|
||||||
finally:
|
finally:
|
||||||
sys.sterr = old_out
|
sys.stderr = old_out
|
||||||
install_lib = self.get_path(dist, 'purelib')
|
install_lib = self.get_path(dist, 'purelib')
|
||||||
return dist, install_lib
|
return dist, install_lib
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue