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

Deprecation warning due to invalid escape sequences. #168

Open
1 of 4 tasks
tirkarthi opened this issue May 3, 2020 · 1 comment
Open
1 of 4 tasks

Deprecation warning due to invalid escape sequences. #168

tirkarthi opened this issue May 3, 2020 · 1 comment
Labels

Comments

@tirkarthi
Copy link

tirkarthi commented May 3, 2020

Issue Type

Please specify the type of the issue you want to submit:

  • Bug Report
  • Feature Request
  • Documentation Report
  • General Enhancement Idea

Versions & Configuration

Please specify the following things:

  • version of sure: master branch
  • implementation and version of python: 3.8
  • operating system: Ubuntu

Steps to reproduce (Expected and Actual Results)

Deprecation warning due to invalid escape sequences. Using raw strings or escaping them again helps in resolving this. Check https://github.com/asottile/pyupgrade/ for automatic fix of this.

find . -iname '*.py' | grep -Ev 'rdf4|doc|benchmark|tool' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./tests/test_assertion_builder.py:547: DeprecationWarning: invalid escape sequence \w
  ("expect('some string').to.match(r'\w{4} \w{6}') matches regex")
./tests/test_assertion_builder.py:560: DeprecationWarning: invalid escape sequence \d
  "'some string' doesn't match the regular expression /\d{2} \d{4}/")
@gabrielfalcao
Copy link
Owner

thanks for the report @tirkarthi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants