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 durnig pytest-cov #685

Closed
Jakub89 opened this issue Jun 5, 2020 · 2 comments
Closed

DeprecationWarning durnig pytest-cov #685

Jakub89 opened this issue Jun 5, 2020 · 2 comments

Comments

@Jakub89
Copy link

Jakub89 commented Jun 5, 2020

We've updated nameko from stable to 3.0.0rc8 to get rid of pytest warnings. And we were successful, but one different warning appear:

========================================== warnings summary ==========================================
.../lib/python3.8/site-packages/nameko/messaging.py:38
  .../lib/python3.8/site-packages/nameko/messaging.py:38: DeprecationWarning: invalid escape sequence \.
    re.sub("^{}\.".format(prefix), "", key): value

-- Docs: https://docs.pytest.org/en/latest/warnings.html

Environment:

  • Nameko version: 3.0.0rc8
  • Python version: 3.8.2
  • OS: Manjaro Linux 64-bit GNOME 3.36.2
  • pytest: 5.4.1
  • pytest-cov: 2.8.1
zsiciarz added a commit to zsiciarz/nameko that referenced this issue Jul 24, 2020
@zsiciarz
Copy link

Looks like the regex string is missing r prefix. I proposed a fix in #690 .

mattbennett pushed a commit that referenced this issue Sep 29, 2021
@mattbennett
Copy link
Member

Fixed in #690. Thanks @zsiciarz!

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

3 participants