@pytest.mark.network
def test_no_extras_uninstall(script):
 result = script.pip('install', 'Paste[openid]==1.7.5.1', expect_stderr=True)
 assert (join(script.site_packages, 'paste') in result.files_created), sorted(result.files_created.keys())
 assert (join(script.site_packages, 'openid') in result.files_created), sorted(result.files_created.keys())
 result2 = script.pip('uninstall', 'Paste', '-y')
 initools_folder = (script.site_packages / 'openid')
 assert (initools_folder not in result2.files_deleted), result.files_deleted

@ pytest . mark . network def test_no_extras_uninstall ( script ) : result = script . pip ( 'install' , 'Paste[openid]==1.7.5.1' , expect_stderr = True ) assert ( join ( script . site_packages , 'paste' ) in result . files_created ) , sorted ( result . files_created . keys ( ) ) assert ( join ( script . site_packages , 'openid' ) in result . files_created ) , sorted ( result . files_created . keys ( ) ) result2 = script . pip ( 'uninstall' , 'Paste' , '-y' ) initools_folder = ( script . site_packages / 'openid' ) assert ( initools_folder not in result2 . files_deleted ) , result . files_deleted
no extras dependency gets uninstalled when the root package is uninstalled .