@pytest.mark.skipif("sys.platform == 'win32' and sys.version_info >= (3,)")
def test_install_package_that_emits_unicode(script, data):
 to_install = data.packages.join('BrokenEmitsUTF8')
 result = script.pip('install', to_install, expect_error=True, expect_temp=True, quiet=True)
 assert ('FakeError: this package designed to fail on install' in result.stdout)
 assert ('UnicodeDecodeError' not in result.stdout)

@ pytest . mark . skipif ( "sys.platform == 'win32' and sys.version_info >= (3,)" ) def test_install_package_that_emits_unicode ( script , data ) : to_install = data . packages . join ( 'BrokenEmitsUTF8' ) result = script . pip ( 'install' , to_install , expect_error = True , expect_temp = True , quiet = True ) assert ( 'FakeError: this package designed to fail on install' in result . stdout ) assert ( 'UnicodeDecodeError' not in result . stdout )
install a package with a setup .