gabrielfalcao / sure

sophisticated automated test library and runner
https://sure.readthedocs.io
GNU General Public License v3.0
698 stars 74 forks source link

Deprecation warning due to invalid escape sequences. #168

Open tirkarthi opened 4 years ago

tirkarthi commented 4 years ago

Issue Type

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

Versions & Configuration

Please specify the following things:

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 commented 4 years ago

thanks for the report @tirkarthi