Commit b73fcba7 authored by Jason R. Coombs's avatar Jason R. Coombs

We expect easy_install to raise a SystemExit

--HG--
branch : distribute
extra : rebase_source : 74b6b4091c9719daab6f240f8c05b24183fc1b12
parent b06c48c0
...@@ -277,12 +277,10 @@ class TestSetupRequires(unittest.TestCase): ...@@ -277,12 +277,10 @@ class TestSetupRequires(unittest.TestCase):
'--allow-hosts', 'localhost', '--allow-hosts', 'localhost',
'--exclude-scripts', '--install-dir', temp_install_dir, '--exclude-scripts', '--install-dir', temp_install_dir,
dist_file] 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 # our fake server can't actually supply the dependency
try: self.assertRaises(SystemExit,
easy_install_pkg.main(ei_params) easy_install_pkg.main, ei_params)
except Exception:
pass
#self.assertTrue(os.listdir(temp_install_dir)) #self.assertTrue(os.listdir(temp_install_dir))
self.assertEqual(len(p_index.requests), 1) self.assertEqual(len(p_index.requests), 1)
self.assertEqual(p_index.requests[0].path, 'x') self.assertEqual(p_index.requests[0].path, 'x')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment