Commit cc4d57dc authored by Jason R. Coombs's avatar Jason R. Coombs

Restore Python 2.4 compatibility in test_easy_install. Fixes #21

parent aa2269f6
......@@ -272,11 +272,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