Skip to content

Commit

Permalink
TODO: PYTEST_FORCE_COLOR
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Sep 10, 2020
1 parent a0e53b4 commit f066db0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/_pytest/_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f066db0

Please sign in to comment.