def test_install_from_broken_wheel(script, data):
 from tests.lib import TestFailure
 package = data.packages.join('brokenwheel-1.0-py2.py3-none-any.whl')
 result = script.pip('install', package, '--no-index', expect_error=True)
 with pytest.raises(TestFailure):
  result.assert_installed('futurewheel', without_egg_link=True, editable=False)

def test_install_from_broken_wheel ( script , data ) : from tests . lib import TestFailure package = data . packages . join ( 'brokenwheel-1.0-py2.py3-none-any.whl' ) result = script . pip ( 'install' , package , '--no-index' , expect_error = True ) with pytest . raises ( TestFailure ) : result . assert_installed ( 'futurewheel' , without_egg_link = True , editable = False )
test that installing a broken wheel fails properly .