Commits

Jason R. Coombs  committed 10bba3f

Restore Python 2.4 compatibility in test_easy_install. Fixes #21

  • Participants
  • Parent commits e713d55

Comments (0)

Files changed (1)

File setuptools/tests/test_easy_install.py

         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