@pytest.mark.network
def test_pip_wheel_fail(script, data):
 script.pip('install', 'wheel')
 result = script.pip('wheel', '--no-index', '-f', data.find_links, 'wheelbroken==0.1', expect_error=True)
 wheel_file_name = ('wheelbroken-0.1-py%s-none-any.whl' % pyversion[0])
 wheel_file_path = (script.scratch / wheel_file_name)
 assert (wheel_file_path not in result.files_created), (wheel_file_path, result.files_created)
 assert ('FakeError' in result.stdout), result.stdout
 assert ('Failed to build wheelbroken' in result.stdout), result.stdout
 assert (result.returncode != 0)

@ pytest . mark . network def test_pip_wheel_fail ( script , data ) : script . pip ( 'install' , 'wheel' ) result = script . pip ( 'wheel' , '--no-index' , '-f' , data . find_links , 'wheelbroken==0.1' , expect_error = True ) wheel_file_name = ( 'wheelbroken-0.1-py%s-none-any.whl' % pyversion [ 0 ] ) wheel_file_path = ( script . scratch / wheel_file_name ) assert ( wheel_file_path not in result . files_created ) , ( wheel_file_path , result . files_created ) assert ( 'FakeError' in result . stdout ) , result . stdout assert ( 'Failed to build wheelbroken' in result . stdout ) , result . stdout assert ( result . returncode != 0 )
test pip wheel failure .