#NEWLINE# def test_install_unsupported_wheel_file( script , data ) : #NEWLINE# #INDENT# script . scratch_path . join ( 'wheel-file.txt' ) . write ( textwrap . dedent ( ( '        %s\n        ' % data . packages . join ( 'simple.dist-0.1-py1-none-invalid.whl' ) ) ) ) #NEWLINE# result = script . pip ( 'install' , '-r' , ( script . scratch_path / 'wheel-file.txt' ) , expect_error = True , expect_stderr = True ) #NEWLINE# assert ( ( 'simple.dist-0.1-py1-none-invalid.whl is not a supported ' + 'wheel on this platform' ) in result . stderr ) #NEWLINE# assert ( len ( result . files_created ) == 0 )