summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-01-04 19:43:58 +0100
committerMichał Górny <mgorny@gentoo.org>2025-01-04 20:08:46 +0100
commitf231cc4eb68137a49b49bd55b61b5fdd852a9e40 (patch)
tree08d79e4aa058dbc23a4a5b146af94de21afe0cc1 /dev-python/pip/files
parentnet-im/openmittsu: add github upstream metadata (diff)
downloadgentoo-f231cc4eb68137a49b49bd55b61b5fdd852a9e40.tar.gz
gentoo-f231cc4eb68137a49b49bd55b61b5fdd852a9e40.tar.bz2
gentoo-f231cc4eb68137a49b49bd55b61b5fdd852a9e40.zip
dev-python/pip: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pip/files')
-rw-r--r--dev-python/pip/files/pip-23.3.1-no-color.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/dev-python/pip/files/pip-23.3.1-no-color.patch b/dev-python/pip/files/pip-23.3.1-no-color.patch
deleted file mode 100644
index 528e2c6cf465..000000000000
--- a/dev-python/pip/files/pip-23.3.1-no-color.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From ad01e9c2a965d395c5902c8ad70c970c7631316b Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Sat, 25 Nov 2023 07:36:59 +0100
-Subject: [PATCH] Fix tests when NO_COLOR is set in the calling environment
-
-Add `FORCE_COLOR` and `NO_COLOR` variables to the `isolate()` fixture
-to ensure that these two variables do not affect internal test output.
-This fixes the following two test failures when pytest is called with
-`NO_COLOR` set:
-
-```
-FAILED tests/unit/test_exceptions.py::TestDiagnosticPipErrorPresentation_ASCII::test_complete_color - AssertionError: assert '\x1b[1merror...ing harder.\n' == '\x1b[1;31mer...ing harder.\n'
-FAILED tests/unit/test_exceptions.py::TestDiagnosticPipErrorPresentation_Unicode::test_complete_color - AssertionError: assert '\x1b[1merror...ing harder.\n' == '\x1b[1;31mer...ing harder.\n'
-```
----
- news/7ae28a10-04c4-4a1f-a276-4c9e04f2e0c1.trivial.rst | 0
- tests/conftest.py | 4 ++++
- 2 files changed, 4 insertions(+)
- create mode 100644 news/7ae28a10-04c4-4a1f-a276-4c9e04f2e0c1.trivial.rst
-
-diff --git a/tests/conftest.py b/tests/conftest.py
-index c5bf4bb9567..8d9eb029c79 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -318,6 +318,10 @@ def isolate(tmpdir: Path, monkeypatch: pytest.MonkeyPatch) -> None:
- # Make sure tests don't share a requirements tracker.
- monkeypatch.delenv("PIP_BUILD_TRACKER", False)
-
-+ # Make sure color control variables don't affect internal output.
-+ monkeypatch.delenv("FORCE_COLOR", False)
-+ monkeypatch.delenv("NO_COLOR", False)
-+
- # FIXME: Windows...
- os.makedirs(os.path.join(home_dir, ".config", "git"))
- with open(os.path.join(home_dir, ".config", "git", "config"), "wb") as fp: