aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Bray <embray@stsci.edu>2012-09-11 08:12:04 -0400
committerErik Bray <embray@stsci.edu>2012-09-11 08:12:04 -0400
commitcada83b25777a9b089b85bc4417baa7016a9c652 (patch)
tree1b9daa69576dd9904e2cb4aa3df2ea7d8d0c5158
parent8866de1785cc6961d2111f1e0f55b781a7de660d (diff)
downloadexternal_python_setuptools-cada83b25777a9b089b85bc4417baa7016a9c652.tar.gz
external_python_setuptools-cada83b25777a9b089b85bc4417baa7016a9c652.tar.bz2
external_python_setuptools-cada83b25777a9b089b85bc4417baa7016a9c652.zip
Make this test less chatty
--HG-- branch : distribute extra : rebase_source : da18973713f46ff00931ea79f0fcd39a13fb8349
-rw-r--r--setuptools/tests/test_easy_install.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index ce8b611b..e49c6f49 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -302,12 +302,19 @@ class TestUserInstallTest(unittest.TestCase):
)
"""))
+ old_stdout = sys.stdout
+ old_stderr = sys.stderr
+ sys.stdout = StringIO.StringIO()
+ sys.stderr = StringIO.StringIO()
try:
reset_setup_stop_context(
lambda: run_setup(test_setup_py, ['install'])
)
except SandboxViolation:
self.fail('Installation caused SandboxViolation')
+ finally:
+ sys.stdout = old_stdout
+ sys.stderr = old_stderr
class TestSetupRequires(unittest.TestCase):