Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: invalid escape sequence \( #176

Open
mtelka opened this issue Dec 11, 2024 · 1 comment
Open

DeprecationWarning: invalid escape sequence \( #176

mtelka opened this issue Dec 11, 2024 · 1 comment

Comments

@mtelka
Copy link

mtelka commented Dec 11, 2024

While running tests I noticed following warnings:

=============================== warnings summary ===============================
tests/test_subtests.py:397
  $(@D)/tests/test_subtests.py:397: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\) \[custom message\] \(i=4\).*",

tests/test_subtests.py:398
  $(@D)/tests/test_subtests.py:398: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\) \[custom message\] \(i=9\).*",

tests/test_subtests.py:400
  $(@D)/tests/test_subtests.py:400: DeprecationWarning: invalid escape sequence \(
    "FAILED \(failures=6, skipped=4\)",

tests/test_subtests.py:406
  $(@D)/tests/test_subtests.py:406: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\.test_foo\) \[custom message\] \(i=4\).*",

tests/test_subtests.py:407
  $(@D)/tests/test_subtests.py:407: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\.test_foo\) \[custom message\] \(i=9\).*",

tests/test_subtests.py:409
  $(@D)/tests/test_subtests.py:409: DeprecationWarning: invalid escape sequence \(
    "FAILED \(failures=6, skipped=4\)",

tests/test_subtests.py:466
  $(@D)/tests/test_subtests.py:466: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\) \[custom message\] \(i=4\).*",

tests/test_subtests.py:467
  $(@D)/tests/test_subtests.py:467: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\) \[custom message\] \(i=9\).*",

tests/test_subtests.py:469
  $(@D)/tests/test_subtests.py:469: DeprecationWarning: invalid escape sequence \(
    "FAILED \(failures=6, skipped=5\)",

tests/test_subtests.py:475
  $(@D)/tests/test_subtests.py:475: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\.test_foo\) \[custom message\] \(i=4\).*",

tests/test_subtests.py:476
  $(@D)/tests/test_subtests.py:476: DeprecationWarning: invalid escape sequence \(
    "FAIL: test_foo \(__main__\.T\.test_foo\) \[custom message\] \(i=9\).*",

tests/test_subtests.py:478
  $(@D)/tests/test_subtests.py:478: DeprecationWarning: invalid escape sequence \(
    "FAILED \(failures=6, skipped=5\)",

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
@nicoddemus
Copy link
Member

Thanks @mtelka for the report.

If you have the time/willingness, a PR would be much welcome!

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

No branches or pull requests

2 participants