diff options
author | Stefan H. Holek <stefan@epy.co.at> | 2012-10-16 17:12:58 +0200 |
---|---|---|
committer | Stefan H. Holek <stefan@epy.co.at> | 2012-10-16 17:12:58 +0200 |
commit | b68c62e1cd28a9bedf6c6b8f65c5428361e644a9 (patch) | |
tree | 1e8cbd76668eaa1f294e650368ace0ba04a1bb44 | |
parent | 422682d8c44fb310e3431d56b2ee0a991ced72db (diff) | |
download | external_python_setuptools-b68c62e1cd28a9bedf6c6b8f65c5428361e644a9.tar.gz external_python_setuptools-b68c62e1cd28a9bedf6c6b8f65c5428361e644a9.tar.bz2 external_python_setuptools-b68c62e1cd28a9bedf6c6b8f65c5428361e644a9.zip |
Fix Python 2.4 incompatibility in test_easy_install.py.
--HG--
branch : distribute
extra : rebase_source : ba9360ee8ff6c69f2ef589ef7c920fc0c8219b61
-rw-r--r-- | setuptools/tests/test_easy_install.py | 11 |
1 files changed, 6 insertions, 5 deletions
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 |