click icon indicating copy to clipboard operation
click copied to clipboard

Missing reset on should_strip_ansi causing cascading issues during other tests

Open Tyl13 opened this issue 1 year ago • 0 comments

PR #2729 was not resetting _compat.should_strip_ansi after replacing it with the mocked version. So the full pytest causes test_echo_color_flag to fail for windows machines.

Run pytest on test_utils.py with a Windows machine and observe the test that fails when it shouldn't be.

The test should not fail.

Environment:

  • Python version: 3.12.3
  • Click version: 8.1.x source code
  • OS: Windows

Tyl13 avatar May 22 '24 23:05 Tyl13