-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Put back deprecation warnings #63315
Put back deprecation warnings #63315
Conversation
@waynew Thanks for tracking that down! Does it make sense to add a unit test to check that deprecation warnings actually work? IMO this feature is important enough to warrant a dedicated test case. The regression was left undetected for a couple of years! |
f24a478
to
1bc9527
Compare
Checked the https://docs.python.org/3/library/warnings.html#warnings.filterwarnings docs but there wasn't any obvious reason why our warnings disappear. This restores the DeprecationWarnings showing up on the command line.
Rather than just rely on the test suite, we also add a deprecation warning to the test module, which will enable a simple method for ensuring that DeprecationWarnings are correctly emitted.
1bc9527
to
9c896fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failures look valid.
7ec752c
to
ee0accb
Compare
Due to some of the versions of dependencies we're using, these tests may emit some specific errors.
ee0accb
to
0d48439
Compare
Last failures look like flaky bits |
@s0undt3ch test failures look to be sorted, finally 🙃 |
What does this PR do?
Fixes #62185 - now we emit DeprecationWarnings again.
Can test against the MCVE in #59917
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
[x] Docs[ ] Tests written/updatedCommits signed with GPG?
Yes