@pytest.mark.network
def test_uninstall_with_scripts(script):
 result = script.run('easy_install', 'PyLogo', expect_stderr=True)
 easy_install_pth = (script.site_packages / 'easy-install.pth')
 pylogo = (((sys.platform == 'win32') and 'pylogo') or 'PyLogo')
 assert (pylogo in result.files_updated[easy_install_pth].bytes)
 result2 = script.pip('uninstall', 'pylogo', '-y')
 assert_all_changes(result, result2, [(script.venv / 'build'), 'cache', easy_install_pth])

@ pytest . mark . network def test_uninstall_with_scripts ( script ) : result = script . run ( 'easy_install' , 'PyLogo' , expect_stderr = True ) easy_install_pth = ( script . site_packages / 'easy-install.pth' ) pylogo = ( ( ( sys . platform == 'win32' ) and 'pylogo' ) or 'PyLogo' ) assert ( pylogo in result . files_updated [ easy_install_pth ] . bytes ) result2 = script . pip ( 'uninstall' , 'pylogo' , '-y' ) assert_all_changes ( result , result2 , [ ( script . venv / 'build' ) , 'cache' , easy_install_pth ] )
uninstall an easy_installed package with scripts .