DiffSK/configobj

5.0.6: pytest warnings

kloczek opened this issue ยท 3 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.