# fix\(tests\): reject invalid Python escapes \(\#563\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/3adac61209a078506097a9661ca5e2949cd2656b)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 3adac61209a078506097a9661ca5e2949cd2656b

Requested commit: 3adac61209a078506097a9661ca5e2949cd2656b

Commit: 3adac61209a078506097a9661ca5e2949cd2656b

Tree: 68972516302247cc15782847dcb9c3cc92e3dbb8

Author: Simone

Committer: GitHub

## Message

```
fix(tests): reject invalid Python escapes (#563)

* fix(tests): reject invalid Python escapes

Escape the embedded QML regular expression without changing its generated value. Run pyflakes with SyntaxWarning promoted to an error so future invalid Python escapes fail the lint target.

Documentation impact: update the development guide's Python lint contract. Changelog and TODO are unchanged because widget behavior and Linux parity are unaffected.

* fix(tests): reject invalid escapes on Python 3.10 and 3.11

Python before 3.12 reports invalid escape sequences as DeprecationWarning,
so the SyntaxWarning filter alone let them through pyflakes there.
```

## Parents

- [6858e24796d33aacb95a8459c07d6c2de961af4d](https://git.cafe/lucenx/codexbar-plasma/commit/6858e24796d33aacb95a8459c07d6c2de961af4d?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/3adac61209a078506097a9661ca5e2949cd2656b?format=markdown)
