# Python : Testing : pytest : Output
## Overview
During test execution, any output sent to stdout and stderr is captured. If a test or a setup method fails, its captured output will usually be shown along with the failure traceback.
By default, capturing is done by intercepting writes to low level file descriptors. This allows to capture output from simple print statements as well as output from a subprocess started by a test.
What to capture (and how) is [configurable](https://docs.pytest.org/en/latest/how-to/output.htm), and captured output can be made accessible for tests to examine.
> [!NOTE] Filter Out Warnings
> ```python
> pytest.mark.filterwarnings( "ignore:.*usage will be deprecated.*:DeprecationWarning" )
> ```
## Header
```
=================================================== test session starts ===================================================
platform linux -- Python 3.12.0, pytest-8.3.3, pluggy-1.5.0
rootdir: /home/ofer/src
configfile: pyproject.toml
testpaths: tests, foo # only if you set config:testpaths and run pytest without args
plugins: anyio-4.5.0
collected 1 item
tests/test__foo.py . [100%]
==================================================== 1 passed in 0.01s ====================================================
```