Skip to content

Use @force_not_colorized in test_syntactical_future_repl#152749

Merged
StanFromIreland merged 1 commit into
python:mainfrom
ShaharNaveh:test-check-future-colorize
Jul 1, 2026
Merged

Use @force_not_colorized in test_syntactical_future_repl#152749
StanFromIreland merged 1 commit into
python:mainfrom
ShaharNaveh:test-check-future-colorize

Conversation

@ShaharNaveh

Copy link
Copy Markdown
Contributor

Found while working on RustPython/RustPython#8181

This is the only test that checks that the literal substring of SyntaxError: ... is not inside the output, but when coloring is enabled the output might contain a literal

[[1;35mSyntaxError[[0m: [[35minvalid syntax [[0m

making this test to always pass

@StanFromIreland StanFromIreland changed the title Force no color when checking SyntaxError messages in test_future Use @force_not_colorized in test_syntactical_future_repl Jul 1, 2026
@StanFromIreland StanFromIreland merged commit 1656dfb into python:main Jul 1, 2026
99 of 101 checks passed
@StanFromIreland

Copy link
Copy Markdown
Member

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants