Skip to content

Commit

Permalink
Remove debugging fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Nov 16, 2023
1 parent 76fd3db commit 4fbec0f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions setuptools/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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

0 comments on commit 4fbec0f

Please sign in to comment.