diff --git a/src/poetry/utils/env.py b/src/poetry/utils/env.py index d9270cf276d..7d1f6d5526e 100644 --- a/src/poetry/utils/env.py +++ b/src/poetry/utils/env.py @@ -1425,7 +1425,7 @@ def run(self, bin: str, *args: str, **kwargs: Any) -> str | int: return self._run(cmd, **kwargs) def run_pip(self, *args: str, **kwargs: Any) -> int | str: - pip = self.get_pip_command(embedded=True) + pip = self.get_pip_command() cmd = pip + list(args) return self._run(cmd, **kwargs) diff --git a/tests/inspection/test_info.py b/tests/inspection/test_info.py index c242fb90937..0f6d4504a68 100644 --- a/tests/inspection/test_info.py +++ b/tests/inspection/test_info.py @@ -226,7 +226,7 @@ def test_info_setup_missing_mandatory_should_trigger_pep517( except PackageInfoError: assert spy.call_count == 3 else: - assert spy.call_count == 2 + assert spy.call_count == 1 def test_info_prefer_poetry_config_over_egg_info():