summaryrefslogtreecommitdiff
path: root/dev-python/click-help-colors/files/click-help-colors-0.9.4-no-color.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/click-help-colors/files/click-help-colors-0.9.4-no-color.patch')
-rw-r--r--dev-python/click-help-colors/files/click-help-colors-0.9.4-no-color.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/click-help-colors/files/click-help-colors-0.9.4-no-color.patch b/dev-python/click-help-colors/files/click-help-colors-0.9.4-no-color.patch
new file mode 100644
index 000000000000..bc8ca134fb67
--- /dev/null
+++ b/dev-python/click-help-colors/files/click-help-colors-0.9.4-no-color.patch
@@ -0,0 +1,14 @@
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 10482b8..25827a0 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -7,3 +7,9 @@ from click.testing import CliRunner
+ @pytest.fixture
+ def runner():
+ return CliRunner()
++
++
++@pytest.fixture(autouse=True)
++def clean_env(monkeypatch):
++ monkeypatch.delenv("FORCE_COLOR", raising=False)
++ monkeypatch.delenv("NO_COLOR", raising=False)