aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_test.py
diff options
context:
space:
mode:
authorLennart Regebro <regebro@gmail.com>2012-08-21 20:52:16 +0200
committerLennart Regebro <regebro@gmail.com>2012-08-21 20:52:16 +0200
commit42afe54cf9e15ef655e7ed5fef9483682fcd5af2 (patch)
tree5b0569f136e71c8b06c42cac0edb9f23235e0ec9 /setuptools/tests/test_test.py
parent61f4c9c4cbf148253c9e06f3e05757e01affeb6e (diff)
downloadexternal_python_setuptools-42afe54cf9e15ef655e7ed5fef9483682fcd5af2.tar.gz
external_python_setuptools-42afe54cf9e15ef655e7ed5fef9483682fcd5af2.tar.bz2
external_python_setuptools-42afe54cf9e15ef655e7ed5fef9483682fcd5af2.zip
Added fix for the develop command, #299.
--HG-- branch : distribute extra : rebase_source : ef69472e5a9ce97d9102578898e81e516f06497a
Diffstat (limited to 'setuptools/tests/test_test.py')
-rw-r--r--setuptools/tests/test_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py
index 87ccaf44..04134ec5 100644
--- a/setuptools/tests/test_test.py
+++ b/setuptools/tests/test_test.py
@@ -107,8 +107,9 @@ class TestTestTest(unittest.TestCase):
old_stdout = sys.stdout
sys.stdout = StringIO()
try:
- cmd.run()
- except SystemExit: # The test runner calls sys.exit, stop that making an error.
- pass
+ try: # try/except/finally doesn't work in Python 2.4, so we need nested try-statements.
+ cmd.run()
+ except SystemExit: # The test runner calls sys.exit, stop that making an error.
+ pass
finally:
sys.stdout = old_stdout