Skip to content

SyntaxWarning: invalid escape sequence #339

@SeanBryan51

Description

@SeanBryan51

When testing pixi environments, the following warnings were produced from the cerberus package (and sometimes benchcab) when running benchcab --version for recent python versions:

Python 3.10.19 and Python 3.11.14:

$ benchcab --version
benchcab 4.3.0

Python 3.12.12:

$ benchcab --version
/scratch/tm70/sb8430/pixi_cache/envs/benchcab-dev-6201953926517867357/envs/default/lib/python3.12/site-packages/cerberus/errors.py:158: SyntaxWarning: invalid escape sequence '\*'
  Dictionary with errors of an \*of-rule mapped to the index of the definition it
/scratch/tm70/sb8430/pixi_cache/envs/benchcab-dev-6201953926517867357/envs/default/lib/python3.12/site-packages/cerberus/errors.py:186: SyntaxWarning: invalid escape sequence '\*'
  ``True`` for validation errors against different schemas with \*of-rules.
/home/189/sb8430/benchcab/src/benchcab/cli.py:234: SyntaxWarning: invalid escape sequence '\{'
  via \{all, realisations, submissions\} subcommand.""",
benchcab 4.3.0

Python 3.13.9:

$ benchcab --version
/scratch/tm70/sb8430/pixi_cache/envs/benchcab-dev-6201953926517867357/envs/default/lib/python3.13/site-packages/cerberus/errors.py:158: SyntaxWarning: invalid escape sequence '\*'
  Dictionary with errors of an \*of-rule mapped to the index of the definition it
/scratch/tm70/sb8430/pixi_cache/envs/benchcab-dev-6201953926517867357/envs/default/lib/python3.13/site-packages/cerberus/errors.py:186: SyntaxWarning: invalid escape sequence '\*'
  ``True`` for validation errors against different schemas with \*of-rules.
benchcab 4.3.0

All tests use cerberus=1.3.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions