aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-04-07 11:36:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2012-04-07 11:36:25 -0400
commitb73fcba7ff7721c1db0a057337863cdbab58ff81 (patch)
tree5fb0a28f01897c2a209c7737435092c04853c700 /setuptools/tests/test_easy_install.py
parentb06c48c01625706c398e6ef6db343cbb192c184e (diff)
downloadexternal_python_setuptools-b73fcba7ff7721c1db0a057337863cdbab58ff81.tar.gz
external_python_setuptools-b73fcba7ff7721c1db0a057337863cdbab58ff81.tar.bz2
external_python_setuptools-b73fcba7ff7721c1db0a057337863cdbab58ff81.zip
We expect easy_install to raise a SystemExit
--HG-- branch : distribute extra : rebase_source : 74b6b4091c9719daab6f240f8c05b24183fc1b12
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index aff2688a..e78b59aa 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -277,12 +277,10 @@ class TestSetupRequires(unittest.TestCase):
'--allow-hosts', 'localhost',
'--exclude-scripts', '--install-dir', temp_install_dir,
dist_file]
- # attempt to install the dist. It will fail because
+ # attempt to install the dist. It should fail because
# our fake server can't actually supply the dependency
- try:
- easy_install_pkg.main(ei_params)
- except Exception:
- pass
+ self.assertRaises(SystemExit,
+ easy_install_pkg.main, ei_params)
#self.assertTrue(os.listdir(temp_install_dir))
self.assertEqual(len(p_index.requests), 1)
self.assertEqual(p_index.requests[0].path, 'x')