Jason R. Coombs  committed 8067d5d

We expect easy_install to raise a SystemExit

  • Participants
  • Parent commits 06f2cf0

Comments (0)

Files changed (1)

File setuptools/tests/

                         '--allow-hosts', 'localhost',
                         '--exclude-scripts', '--install-dir', temp_install_dir,
-                    # 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.assertEqual(len(p_index.requests), 1)
         self.assertEqual(p_index.requests[0].path, 'x')