@pytest.mark.network
def test_no_clean_option_blocks_cleaning_after_wheel(script, data):
 script.pip('install', 'wheel')
 build = (script.venv_path / 'build')
 result = script.pip('wheel', '--no-clean', '--no-index', '--build', build, ('--find-links=%s' % data.find_links), 'simple')
 build = (build / 'simple')
 assert exists(build), ('build/simple should still exist %s' % str(result))

@ pytest . mark . network def test_no_clean_option_blocks_cleaning_after_wheel ( script , data ) : script . pip ( 'install' , 'wheel' ) build = ( script . venv_path / 'build' ) result = script . pip ( 'wheel' , '--no-clean' , '--no-index' , '--build' , build , ( '--find-links=%s' % data . find_links ) , 'simple' ) build = ( build / 'simple' ) assert exists ( build ) , ( 'build/simple should still exist %s' % str ( result ) )
test --no-clean option blocks cleaning after wheel build .