removed spurious output
This commit is contained in:
parent
b1b6e1384c
commit
2da756592b
|
@ -1,6 +1,7 @@
|
||||||
"""Tests for the uninstall command."""
|
"""Tests for the uninstall command."""
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from io import StringIO
|
||||||
|
|
||||||
from packaging.database import disable_cache, enable_cache
|
from packaging.database import disable_cache, enable_cache
|
||||||
from packaging.run import main
|
from packaging.run import main
|
||||||
|
@ -79,7 +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)
|
||||||
dist = self.run_setup('install_dist', '--prefix=' + self.root_dir)
|
old_out = sys.stdout
|
||||||
|
sys.stderr = StringIO()
|
||||||
|
try:
|
||||||
|
dist = self.run_setup('install_dist', '--prefix=' + self.root_dir)
|
||||||
|
finally:
|
||||||
|
sys.sterr = 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