Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20.9: test suite warnings #418

Closed
kloczek opened this issue Mar 29, 2021 · 3 comments
Closed

20.9: test suite warnings #418

kloczek opened this issue Mar 29, 2021 · 3 comments

Comments

@kloczek
Copy link

kloczek commented Mar 29, 2021

============================================================================= warnings summary =============================================================================
tests/test_requirements.py: 2 warnings
tests/test_specifiers.py: 64 warnings
  /home/tkloczko/rpmbuild/BUILD/packaging-20.9/packaging/specifiers.py:283: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
    warnings.warn(

tests/test_specifiers.py: 494 warnings
tests/test_version.py: 14879 warnings
  /home/tkloczko/rpmbuild/BUILD/packaging-20.9/packaging/version.py:127: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_markers.py:98: sys.implementation does exist
SKIPPED [1] tests/test_markers.py:168: sys.implementation does exist
XFAIL tests/test_specifiers.py::TestSpecifier::test_specifier_explicit_legacy
======================================================= 29273 passed, 2 skipped, 1 xfailed, 15439 warnings in 58.14s =======================================================```
@uranusjr
Copy link
Member

This is more or less expected since LegacyVersion is indeed deprecated, but the test suite should therefore silence it.

@pradyunsg
Copy link
Member

#407 is a different approach to fixing this. :)

@kloczek
Copy link
Author

kloczek commented Mar 29, 2021

A so looks like thi ticket can be closed as duplicated.
Thx. Closing.

@kloczek kloczek closed this as completed Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants