Commits

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/test_easy_install.py

                         '--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')