We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 692def2 commit 83b4eb2Copy full SHA for 83b4eb2
doc/en/warnings.rst
@@ -75,6 +75,7 @@ all other warnings into errors.
75
76
.. code-block:: ini
77
78
+ # pytest.ini
79
[pytest]
80
filterwarnings =
81
error
@@ -83,11 +84,12 @@ all other warnings into errors.
83
84
85
.. code-block:: toml
86
- [tool.pytest.ini_options]
87
- # note the use of single quote below to denote "raw" strings in TOML
+ # pyproject.toml
88
+ [tool.pytest.ini_options]
89
filterwarnings = [
90
"error",
91
"ignore::UserWarning",
92
+ # note the use of single quote below to denote "raw" strings in TOML
93
'ignore:function ham\(\) is deprecated:DeprecationWarning',
94
]
95
0 commit comments