Skip to content

Commit

Permalink
debug4
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 21, 2025
1 parent ad791cc commit a3efcc2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Lib/test/test__colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def test_colorized_detection_checks_for_environment_variables(self):
# with unittest.mock.patch("os.environ", env_vars):
# self.assertEqual(_colorize.can_colorize(), expected)

# with unittest.mock.patch("os.environ", {}):
# if sys.platform == "win32":
# self.assertEqual(_colorize.can_colorize(), False)
#
# vt_mock.return_value = True
# self.assertEqual(_colorize.can_colorize(), True)
with unittest.mock.patch("os.environ", {}):
if sys.platform == "win32":
self.assertEqual(_colorize.can_colorize(), False)

vt_mock.return_value = True
self.assertEqual(_colorize.can_colorize(), True)
# else:
# self.assertEqual(_colorize.can_colorize(), True)

Expand Down

0 comments on commit a3efcc2

Please sign in to comment.