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

CentOS 7: logging.warn deprecated? Causes test fail #2013

Closed
ghost opened this issue Jul 2, 2021 · 0 comments
Closed

CentOS 7: logging.warn deprecated? Causes test fail #2013

ghost opened this issue Jul 2, 2021 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior component: tests
Milestone

Comments

@ghost
Copy link

ghost commented Jul 2, 2021

On CentOS 7 with Python 3.6:

2021-07-02 15:49:04,552 - test-bot - WARNING - /home/abuild/rpmbuild/BUILD/intelmq/intelmq/bots/experts/rdap/expert.py:116: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead

That caused the test case to fail as this is a WARNING in the logs.

logging.warn is not even documented https://docs.python.org/3/library/logging.html

Python devs are not sure if it should stay or not: https://bugs.python.org/issue44543

@ghost ghost added bug Indicates an unexpected problem or unintended behavior component: tests labels Jul 2, 2021
@ghost ghost changed the title CentOS 7: warnings.warn deprecated? Causes test fail CentOS 7: logging.warn deprecated? Causes test fail Jul 2, 2021
@ghost ghost self-assigned this Jul 2, 2021
@ghost ghost added this to the 3.0.1 milestone Jul 2, 2021
@ghost ghost closed this as completed in b6bfe06 Jul 5, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: tests
Projects
None yet
Development

No branches or pull requests

0 participants