def test_cleanup_after_egg_info_exception(script, data):
 result = script.pip('install', '-f', data.find_links, '--no-index', 'brokenegginfo==0.1', expect_error=True)
 build = (script.venv_path / 'build')
 assert (not exists(build)), ('build/ dir still exists: %s' % result.stdout)
 script.assert_no_temp()

def test_cleanup_after_egg_info_exception ( script , data ) : result = script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'brokenegginfo==0.1' , expect_error = True ) build = ( script . venv_path / 'build' ) assert ( not exists ( build ) ) , ( 'build/ dir still exists: %s' % result . stdout ) script . assert_no_temp ( )
test clean up after a setup .