Skip to content

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

@Tyl13

Description

@Tyl13

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions