Skip to content

Commit

Permalink
debug11
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 21, 2025
1 parent 77003ef commit 0f64db9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test__colorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def test_colorized_detection_checks_for_environment_variables(self):

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

vt_mock.return_value = True
self.assertEqual(_colorize.can_colorize(), True)
Expand All @@ -74,6 +75,7 @@ def test_colorized_detection_checks_for_environment_variables(self):

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

vt_mock.return_value = True
Expand Down

0 comments on commit 0f64db9

Please sign in to comment.