From e85a0995113b53a9f173e21cb4573d4a3fcab9c3 Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Fri, 22 May 2020 17:16:43 +0800 Subject: [PATCH] Remove test_install_include_work_dir_pkg --- tests/functional/test_install.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/tests/functional/test_install.py b/tests/functional/test_install.py index 0543f9e4c..5ae1495cf 100644 --- a/tests/functional/test_install.py +++ b/tests/functional/test_install.py @@ -1878,29 +1878,3 @@ def test_install_skip_work_dir_pkg(script, data): assert 'Requirement already satisfied: simple' not in result.stdout assert 'Successfully installed simple' in result.stdout - - -@pytest.mark.fails_on_new_resolver -def test_install_include_work_dir_pkg(script, data): - """ - Test that install of a package in working directory - should fail on the second attempt after an install - if working directory is added in PYTHONPATH - """ - - # Create a test package, install it and then uninstall it - pkg_path = create_test_package_with_setup( - script, name='simple', version='1.0') - script.pip('install', '-e', '.', - expect_stderr=True, cwd=pkg_path) - script.pip('uninstall', 'simple', '-y') - - script.environ.update({'PYTHONPATH': pkg_path}) - - # Running the install command again from the working directory - # will be a no-op, as the package is found to be installed, - # when the package directory is in PYTHONPATH - result = script.pip('install', '--find-links', - data.find_links, 'simple', - expect_stderr=True, cwd=pkg_path) - assert 'Requirement already satisfied: simple' in result.stdout