avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
345 stars 343 forks source link

logging.warn() refactoring for 92lts #6000

Closed richtja closed 3 months ago

richtja commented 3 months ago

The logging.warn() has been deprecated in python3.3, and it will be removed in python3.13. Let's use logging.warning() instead in avocado code.

Reference: https://docs.python.org/3.13/whatsnew/3.13.html This is a fix for https://bugzilla.redhat.com/show_bug.cgi?id=2250847 and https://bugzilla.redhat.com/show_bug.cgi?id=2304322

richtja commented 3 months ago

Hi @richtja, the changes here look good, but it would be nice to have them in master first, and then referenced here as a backport.

Hi @clebergnu sure I can do that. Actually, those which you pointed out can be even omitted here, because those are only examples and documentation and doesn't cause real troubles in 92lts. What do you think?

clebergnu commented 3 months ago

Hi @richtja, the changes here look good, but it would be nice to have them in master first, and then referenced here as a backport.

Hi @clebergnu sure I can do that. Actually, those which you pointed out can be even omitted here, because those are only examples and documentation and doesn't cause real troubles in 92lts. What do you think?

Oh, you decided to remove them. Now let's look at the CI issues to get this merged.