diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-22 02:45:48 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-22 02:45:48 +0100 |
commit | 52fc263f2dd029a99ad4f0e5e1c3dbfd490d6b63 (patch) | |
tree | f00cbd5f2bd3b202f000a03fb3beb1742890f144 /dev-python/pip/files | |
parent | aa870ba91722a8d38ba5103297a6aa4abb54e5bc (diff) |
gentoo auto-resync : 22:07:2022 - 02:45:47
Diffstat (limited to 'dev-python/pip/files')
-rw-r--r-- | dev-python/pip/files/pip-22.2-no-coverage.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pip/files/pip-22.2-no-coverage.patch b/dev-python/pip/files/pip-22.2-no-coverage.patch new file mode 100644 index 000000000000..20a5fa4beabf --- /dev/null +++ b/dev-python/pip/files/pip-22.2-no-coverage.patch @@ -0,0 +1,52 @@ +From 75292c12ee2062f7d035b326b652ba6cffb8480d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Sat, 23 Oct 2021 08:11:11 +0200 +Subject: [PATCH] Disable coverage testing support inside test venvs + +--- + tests/conftest.py | 15 --------------- + 1 file changed, 15 deletions(-) + +diff --git a/tests/conftest.py b/tests/conftest.py +index 210ff0f4e..e5c0d2ef0 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -382,13 +382,6 @@ def wheel_install(tmpdir_factory: pytest.TempPathFactory, common_wheels: Path) - + return _common_wheel_editable_install(tmpdir_factory, common_wheels, "wheel") + + +-@pytest.fixture(scope="session") +-def coverage_install( +- tmpdir_factory: pytest.TempPathFactory, common_wheels: Path +-) -> Path: +- return _common_wheel_editable_install(tmpdir_factory, common_wheels, "coverage") +- +- + def install_egg_link( + venv: VirtualEnvironment, project_name: str, egg_info_dir: Path + ) -> None: +@@ -404,7 +397,6 @@ def virtualenv_template( + tmpdir_factory: pytest.TempPathFactory, + pip_src: Path, + setuptools_install: Path, +- coverage_install: Path, + ) -> Iterator[VirtualEnvironment]: + + venv_type: VirtualEnvironmentType +@@ -431,13 +423,6 @@ def virtualenv_template( + [os.fspath(venv.bin / "python"), "setup.py", "-q", "develop"], cwd=pip_editable + ) + +- # Install coverage and pth file for executing it in any spawned processes +- # in this virtual environment. +- install_egg_link(venv, "coverage", coverage_install) +- # zz prefix ensures the file is after easy-install.pth. +- with open(venv.site / "zz-coverage-helper.pth", "a") as f: +- f.write("import coverage; coverage.process_startup()") +- + # Drop (non-relocatable) launchers. + for exe in os.listdir(venv.bin): + if not ( +-- +2.35.1 + |