Skip to content

[FIX]: Suppress confusables invalid escape sequence warnings in pytest#19

Merged
spencrr merged 1 commit into
mainfrom
spencrr/fix-pytest-warnings-on-first-run
Apr 22, 2026
Merged

[FIX]: Suppress confusables invalid escape sequence warnings in pytest#19
spencrr merged 1 commit into
mainfrom
spencrr/fix-pytest-warnings-on-first-run

Conversation

@spencrr

@spencrr spencrr commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Description

On a clean virtual environment (first run, no .pyc cache), pytest emits a
DeprecationWarning (Python 3.11–3.13) or SyntaxWarning (Python 3.14+) from the third-party confusables package

This is mainly so CI passes cleanly on first run.

(see Test (Python 3.11) and others)

confusables/init.py:46: DeprecationWarning: invalid escape sequence '*' space_regex = "[*_~|`-.]*" if include_character_padding else

Verify

rm -rf .venv && uv venv --python 3.13 && uv sync --locked && pytest tests for python 3.11-3.14

Breaking changes

None

Checklist

  • pre-commit run --all-files passes
  • Tests added or updated for changes
  • Documentation updated

@spencrr spencrr requested a review from a team April 20, 2026 23:39
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from ee0e373 to d74cb3e Compare April 21, 2026 00:12
@spencrr spencrr changed the base branch from main to spencrr/pyright-fixups April 21, 2026 00:12
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from d74cb3e to 76709c8 Compare April 21, 2026 00:39
@spencrr spencrr force-pushed the spencrr/pyright-fixups branch from e3e56be to cad5bc4 Compare April 21, 2026 00:40
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch 2 times, most recently from 3b75690 to cc3780e Compare April 21, 2026 02:06
@spencrr spencrr changed the base branch from spencrr/pyright-fixups to main April 21, 2026 02:07
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from cc3780e to 8dc11b0 Compare April 21, 2026 21:29
@spencrr spencrr merged commit ca93344 into main Apr 22, 2026
4 checks passed
@spencrr spencrr deleted the spencrr/fix-pytest-warnings-on-first-run branch April 22, 2026 04:48
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.

2 participants