Ignoring warning in fixtures #10000
Answered
by
The-Compiler
PerchunPak
asked this question in
Q&A
-
Only useful what I found in internet - this unanswered stackoverflow thread. So is there any way to handle warnings in fixture? P.S. I found also that Actually problem that my warnings.simplefilter("always", DeprecationWarning)
warnings.warn(warn_message, category=DeprecationWarning)
warnings.simplefilter("default", DeprecationWarning) |
Beta Was this translation helpful? Give feedback.
Answered by
The-Compiler
May 27, 2022
Replies: 1 comment
-
You should be able to use normal Python mechanisms to suppress the warnings: https://docs.python.org/3/library/warnings.html#temporarily-suppressing-warnings |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PerchunPak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to use normal Python mechanisms to suppress the warnings: https://docs.python.org/3/library/warnings.html#temporarily-suppressing-warnings