@@ -56,7 +56,7 @@ def test_getcfg_and_config(
5656 ),
5757 encoding = "utf-8" ,
5858 )
59- _ , _ , cfg = locate_config (Path .cwd (), [sub ])
59+ _ , _ , cfg , _ = locate_config (Path .cwd (), [sub ])
6060 assert cfg ["name" ] == "value"
6161 config = pytester .parseconfigure (str (sub ))
6262 assert config .inicfg ["name" ] == "value"
@@ -1635,15 +1635,15 @@ def test_with_ini(self, tmp_path: Path, name: str, contents: str) -> None:
16351635 b = a / "b"
16361636 b .mkdir ()
16371637 for args in ([str (tmp_path )], [str (a )], [str (b )]):
1638- rootpath , parsed_inipath , _ = determine_setup (
1638+ rootpath , parsed_inipath , * _ = determine_setup (
16391639 inifile = None ,
16401640 args = args ,
16411641 rootdir_cmd_arg = None ,
16421642 invocation_dir = Path .cwd (),
16431643 )
16441644 assert rootpath == tmp_path
16451645 assert parsed_inipath == inipath
1646- rootpath , parsed_inipath , ini_config = determine_setup (
1646+ rootpath , parsed_inipath , ini_config , _ = determine_setup (
16471647 inifile = None ,
16481648 args = [str (b ), str (a )],
16491649 rootdir_cmd_arg = None ,
@@ -1660,7 +1660,7 @@ def test_pytestini_overrides_empty_other(self, tmp_path: Path, name: str) -> Non
16601660 a = tmp_path / "a"
16611661 a .mkdir ()
16621662 (a / name ).touch ()
1663- rootpath , parsed_inipath , _ = determine_setup (
1663+ rootpath , parsed_inipath , * _ = determine_setup (
16641664 inifile = None ,
16651665 args = [str (a )],
16661666 rootdir_cmd_arg = None ,
@@ -1674,7 +1674,7 @@ def test_setuppy_fallback(self, tmp_path: Path) -> None:
16741674 a .mkdir ()
16751675 (a / "setup.cfg" ).touch ()
16761676 (tmp_path / "setup.py" ).touch ()
1677- rootpath , inipath , inicfg = determine_setup (
1677+ rootpath , inipath , inicfg , _ = determine_setup (
16781678 inifile = None ,
16791679 args = [str (a )],
16801680 rootdir_cmd_arg = None ,
@@ -1686,7 +1686,7 @@ def test_setuppy_fallback(self, tmp_path: Path) -> None:
16861686
16871687 def test_nothing (self , tmp_path : Path , monkeypatch : MonkeyPatch ) -> None :
16881688 monkeypatch .chdir (tmp_path )
1689- rootpath , inipath , inicfg = determine_setup (
1689+ rootpath , inipath , inicfg , _ = determine_setup (
16901690 inifile = None ,
16911691 args = [str (tmp_path )],
16921692 rootdir_cmd_arg = None ,
@@ -1713,7 +1713,7 @@ def test_with_specific_inifile(
17131713 p = tmp_path / name
17141714 p .touch ()
17151715 p .write_text (contents , encoding = "utf-8" )
1716- rootpath , inipath , ini_config = determine_setup (
1716+ rootpath , inipath , ini_config , _ = determine_setup (
17171717 inifile = str (p ),
17181718 args = [str (tmp_path )],
17191719 rootdir_cmd_arg = None ,
@@ -1761,7 +1761,7 @@ def test_with_arg_outside_cwd_without_inifile(
17611761 a .mkdir ()
17621762 b = tmp_path / "b"
17631763 b .mkdir ()
1764- rootpath , inifile , _ = determine_setup (
1764+ rootpath , inifile , * _ = determine_setup (
17651765 inifile = None ,
17661766 args = [str (a ), str (b )],
17671767 rootdir_cmd_arg = None ,
@@ -1777,7 +1777,7 @@ def test_with_arg_outside_cwd_with_inifile(self, tmp_path: Path) -> None:
17771777 b .mkdir ()
17781778 inipath = a / "pytest.ini"
17791779 inipath .touch ()
1780- rootpath , parsed_inipath , _ = determine_setup (
1780+ rootpath , parsed_inipath , * _ = determine_setup (
17811781 inifile = None ,
17821782 args = [str (a ), str (b )],
17831783 rootdir_cmd_arg = None ,
@@ -1791,7 +1791,7 @@ def test_with_non_dir_arg(
17911791 self , dirs : Sequence [str ], tmp_path : Path , monkeypatch : MonkeyPatch
17921792 ) -> None :
17931793 monkeypatch .chdir (tmp_path )
1794- rootpath , inipath , _ = determine_setup (
1794+ rootpath , inipath , * _ = determine_setup (
17951795 inifile = None ,
17961796 args = dirs ,
17971797 rootdir_cmd_arg = None ,
@@ -1807,7 +1807,7 @@ def test_with_existing_file_in_subdir(
18071807 a .mkdir ()
18081808 (a / "exists" ).touch ()
18091809 monkeypatch .chdir (tmp_path )
1810- rootpath , inipath , _ = determine_setup (
1810+ rootpath , inipath , * _ = determine_setup (
18111811 inifile = None ,
18121812 args = ["a/exist" ],
18131813 rootdir_cmd_arg = None ,
@@ -1826,7 +1826,7 @@ def test_with_config_also_in_parent_directory(
18261826 (tmp_path / "myproject" / "tests" ).mkdir ()
18271827 monkeypatch .chdir (tmp_path / "myproject" )
18281828
1829- rootpath , inipath , _ = determine_setup (
1829+ rootpath , inipath , * _ = determine_setup (
18301830 inifile = None ,
18311831 args = ["tests/" ],
18321832 rootdir_cmd_arg = None ,
0 commit comments