Skip to content

fix: strip ANSI escape sequences from report messages#102

Open
LouisLau-art wants to merge 2 commits intopytest-dev:mainfrom
LouisLau-art:fix/strip-ansi-report-messages-83
Open

fix: strip ANSI escape sequences from report messages#102
LouisLau-art wants to merge 2 commits intopytest-dev:mainfrom
LouisLau-art:fix/strip-ansi-report-messages-83

Conversation

@LouisLau-art
Copy link

Fixes #83.

  • Strip ANSI escape sequences from serialized report data before writing JSONL (and after sanitizing unserializable values).
  • Add a regression test that injects ANSI codes via pytest_report_to_serializable.
  • Skip the subtests regression test when pytest-subtests isn’t installed.

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

Successfully merging this pull request may close these issues.

remove ANSI escape sequences from the report messages

1 participant