From f066db0ff1ca2f5243bb6bc2e04714ebf54c8d60 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 9 Sep 2020 21:37:27 +0200 Subject: [PATCH] TODO: PYTEST_FORCE_COLOR --- src/_pytest/_io/__init__.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/_pytest/_io/__init__.py b/src/_pytest/_io/__init__.py index af8ac9d6f2..928d72a638 100644 --- a/src/_pytest/_io/__init__.py +++ b/src/_pytest/_io/__init__.py @@ -17,12 +17,13 @@ def use_markup(file: "TextIO") -> bool: if val in ("0", "1"): return val == "1" - # PYTEST_FORCE_COLOR: handled as boolean. - val = os.getenv("PYTEST_FORCE_COLOR") - if val is not None: - from _pytest.config import _strtobool - - return _strtobool(val) + # TODO + # # PYTEST_FORCE_COLOR: handled as boolean. + # val = os.getenv("PYTEST_FORCE_COLOR") + # if val is not None: + # from _pytest.config import _strtobool + # + # return _strtobool(val) # NO_COLOR: disable markup with any value (https://no-color.org/). if "NO_COLOR" in os.environ: