5.0.6: pytest warnings
kloczek opened this issue ยท 3 comments
kloczek commented
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 ======================================================================
robdennis commented
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
kloczek commented
Sorry I shout submit full pytest output ๐
Python 3.8.15.
robdennis commented
this is also showing in CI/CD
https://github.com/DiffSK/configobj/actions/runs/3943624839/jobs/6748667913#step:5:27