python-hyper / rfc3986

A Python Implementation of RFC3986 including validations
https://rfc3986.readthedocs.io/en/latest/
Other
185 stars 32 forks source link

1.5.0: pytest `DeprecationWarning` warnings #79

Closed kloczek closed 3 years ago

kloczek commented 3 years ago

I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.

tests/test_api.py: 1 warning tests/test_uri.py: 254 warnings tests/test_unicode_support.py: 3 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:172: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(

tests/test_api.py: 1 warning tests/test_uri.py: 253 warnings tests/test_unicode_support.py: 3 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:144: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(

tests/test_api.py: 1 warning tests/test_uri.py: 246 warnings tests/test_unicode_support.py: 2 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:191: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(

tests/test_api.py: 1 warning tests/test_uri.py: 245 warnings tests/test_unicode_support.py: 2 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:210: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(

tests/test_api.py: 1 warning tests/test_uri.py: 244 warnings tests/test_unicode_support.py: 2 warnings /home/tkloczko/rpmbuild/BUILDROOT/python-rfc3986-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages/rfc3986/_mixin.py:229: DeprecationWarning: Please use rfc3986.validators.Validator instead. This method will be eventually removed. warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html 2811 passed, 1517 warnings in 6.75s pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo().terminate()'.

sigmavirus24 commented 3 years ago

This is literally a warning in the library itself that's under test because it's testing code that is deprecated. Not going to fix this before removing that code