From b68c62e1cd28a9bedf6c6b8f65c5428361e644a9 Mon Sep 17 00:00:00 2001 From: "Stefan H. Holek" Date: Tue, 16 Oct 2012 17:12:58 +0200 Subject: Fix Python 2.4 incompatibility in test_easy_install.py. --HG-- branch : distribute extra : rebase_source : ba9360ee8ff6c69f2ef589ef7c920fc0c8219b61 --- setuptools/tests/test_easy_install.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'setuptools/tests') diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index e49c6f49..64cf1ca4 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -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 -- cgit v1.2.3