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