Commit cada83b2 authored by Erik Bray's avatar Erik Bray

Make this test less chatty

--HG--
branch : distribute
extra : rebase_source : da18973713f46ff00931ea79f0fcd39a13fb8349
parent 8866de17
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment