@@ -700,25 +700,6 @@ def _assert_link_tree(self, parent_dir):
700
700
for file in files :
701
701
assert file .is_symlink () or os .stat (file ).st_nlink > 0
702
702
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
-
722
703
def test_editable_without_config_settings (self , tmpdir_cwd ):
723
704
"""
724
705
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):
733
714
build_backend .build_editable ("temp" )
734
715
assert not Path ("build" ).exists ()
735
716
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" }])
743
718
def test_editable_with_config_settings (self , tmpdir_cwd , config_settings ):
744
719
path .build ({** self ._simple_pyproject_example , '_meta' : {}})
745
720
assert not Path ("build" ).exists ()
0 commit comments