DiffSK / configobj

Python 3+ compatible port of the configobj library

Home Page:https://configobj.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

5.0.6: pytest warnings

kloczek opened this issue · comments

Looks like latest pytest shows some warnings

============================================================================= warnings summary =============================================================================
tests/test_configobj.py:41
  /home/tkloczko/rpmbuild/BUILD/configobj-5.0.6/tests/test_configobj.py:41: DeprecationWarning: invalid escape sequence \s
    ws_chars = len(re.search('^(\s*)', first_content).group(1))

tests/test_configobj.py:51
  /home/tkloczko/rpmbuild/BUILD/configobj-5.0.6/tests/test_configobj.py:51: DeprecationWarning: invalid escape sequence \s
    return [re.sub('^\s{0,%s}' % ws_chars, '', line).encode('utf-8')

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 71 passed, 2 warnings in 0.38s ======================================================================

if I remember correctly, warnings are going to be python-version specific. If you're able (it's been a year :( ) add here what python version this is with.

Thanks

Sorry I shout submit full pytest output 😋
Python 3.8.15.