Replies: 2 comments 7 replies
-
Hi @cool-RR, Indeed everything seems to be working OK. I know that depending on where the warning is produced pytest might not be able to ignore it yet because the configuration has not been loaded, but I don't remember the details. If you want to investigate further, it would help to know at which point that warning is being captured by pytest. One simple way to do it is to edit (temporarily, just to test this) |
Beta Was this translation helpful? Give feedback.
-
… On Fri, Oct 7, 2022 at 5:35 PM Bruno Oliveira ***@***.***> wrote:
Sorry, can you run again with --full-trace?
—
Reply to this email directly, view it on GitHub
<#10336 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAN3SSGINQ6TJDQYJGIEX3WCAYJZANCNFSM6AAAAAAQ4PG3AY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
When I run tests, I'm getting DeprecationWarnings that are reported by Pytest. I would like Pytest to ignore these warnings and not report them.
I've put this in my
pyproject.toml
:However, I'm still seeing the warnings:
I run Pytest in the folder where the
pyproject.toml
file is. I'm sure that Pytest is reading the file, because when I put the wrong type quote on it,pytest
complained about the error and wouldn't even run.I also tried just putting a simple
'ignore'
in that configuration file, and also later a simple'error'
but Pytest still produces the same output, showing the warning as a warning.What's wrong here? How can I get Pytest to ignore these warnings?
Beta Was this translation helpful? Give feedback.
All reactions