From 4fbec0f439e1bfb1a29b8d628e1cb1ed334f13a5 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 16 Nov 2023 12:19:39 +0000 Subject: [PATCH] Remove debugging fixture --- setuptools/tests/fixtures.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/setuptools/tests/fixtures.py b/setuptools/tests/fixtures.py index 14ae485a8df..08336e2d453 100644 --- a/setuptools/tests/fixtures.py +++ b/setuptools/tests/fixtures.py @@ -65,7 +65,7 @@ def sample_project(tmp_path): @pytest.fixture(scope="session") -def setuptools_sdist(tmp_path_factory, request, _debug_subprocess): +def setuptools_sdist(tmp_path_factory, request): prebuilt = os.getenv("PRE_BUILT_SETUPTOOLS_SDIST") if prebuilt and os.path.exists(prebuilt): return Path(prebuilt).resolve() @@ -92,7 +92,7 @@ def setuptools_sdist(tmp_path_factory, request, _debug_subprocess): @pytest.fixture(scope="session") -def setuptools_wheel(tmp_path_factory, request, _debug_subprocess): +def setuptools_wheel(tmp_path_factory, request): prebuilt = os.getenv("PRE_BUILT_SETUPTOOLS_WHEEL") if prebuilt and os.path.exists(prebuilt): return Path(prebuilt).resolve() @@ -177,15 +177,3 @@ def _debug_venv(venv, setuptools_wheel): pprint(list(venv_lib.iterdir()), stream=sys.stderr, indent=4) raise - - -@pytest.fixture -def _debug_subprocess(): - try: - yield - except subprocess.CalledProcessError as ex: - print(f"{ex.cmd=}", file=sys.stderr) - print(f"{ex.stdout=}", file=sys.stderr) - print(f"{ex.stderr=}", file=sys.stderr) - print(f"{ex.returncode=}", file=sys.stderr) - raise