Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing reset on should_strip_ansi causing cascading issues during other tests #2732

Open
Tyl13 opened this issue May 22, 2024 · 0 comments
Open
Milestone

Comments

@Tyl13
Copy link

Tyl13 commented May 22, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants