Commit b68c62e1 authored by Stefan H. Holek's avatar Stefan H. Holek

Fix Python 2.4 incompatibility in test_easy_install.py.

--HG--
branch : distribute
extra : rebase_source : ba9360ee8ff6c69f2ef589ef7c920fc0c8219b61
parent 422682d8
......@@ -307,11 +307,12 @@ class TestUserInstallTest(unittest.TestCase):
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')
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
......
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