Skip to content

Commit 5c7e61d

Browse files
committed
Remove no longer valid tests for config_settings and editable installs
1 parent d407d7e commit 5c7e61d

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

setuptools/tests/test_build_meta.py

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -700,25 +700,6 @@ def _assert_link_tree(self, parent_dir):
700700
for file in files:
701701
assert file.is_symlink() or os.stat(file).st_nlink > 0
702702

703-
@pytest.mark.filterwarnings("ignore::setuptools.SetuptoolsDeprecationWarning")
704-
# Since the backend is running via a process pool, in some operating systems
705-
# we may have problems to make assertions based on warnings/stdout/stderr...
706-
# So the best is to ignore them for the time being.
707-
def test_editable_with_global_option_still_works(self, tmpdir_cwd):
708-
"""The usage of --global-option is now discouraged in favour of --build-option.
709-
This is required to make more sense of the provided scape hatch and align with
710-
previous pip behaviour. See pypa/setuptools#1928.
711-
"""
712-
path.build({**self._simple_pyproject_example, '_meta': {}})
713-
build_backend = self.get_build_backend()
714-
assert not Path("build").exists()
715-
716-
cfg = {"--global-option": ["--mode", "strict"]}
717-
build_backend.prepare_metadata_for_build_editable("_meta", cfg)
718-
build_backend.build_editable("temp", cfg, "_meta")
719-
720-
self._assert_link_tree(next(Path("build").glob("__editable__.*")))
721-
722703
def test_editable_without_config_settings(self, tmpdir_cwd):
723704
"""
724705
Sanity check to ensure tests with --mode=strict are different from the ones
@@ -733,13 +714,7 @@ def test_editable_without_config_settings(self, tmpdir_cwd):
733714
build_backend.build_editable("temp")
734715
assert not Path("build").exists()
735716

736-
@pytest.mark.parametrize(
737-
"config_settings",
738-
[
739-
{"--build-option": ["--mode", "strict"]},
740-
{"editable-mode": "strict"},
741-
],
742-
)
717+
@pytest.mark.parametrize("config_settings", [{"editable-mode": "strict"}])
743718
def test_editable_with_config_settings(self, tmpdir_cwd, config_settings):
744719
path.build({**self._simple_pyproject_example, '_meta': {}})
745720
assert not Path("build").exists()

0 commit comments

Comments
 (0)