============================= test session starts ==============================
platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /home/runner/work/pygments-pytest/pygments-pytest/.tox/push/bin/python
cachedir: .pytest_cache
rootdir: /tmp/pytest-of-runner/pytest-0/test_warnings1
collecting ... collected 1 item

f.py::test PASSED                                                        [100%]

=============================== warnings summary ===============================
f.py::test
  /tmp/pytest-of-runner/pytest-0/test_warnings1/f.py:3: UserWarning: WARNING!
    warnings.warn(UserWarning("WARNING!"))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 1 passed, 1 warning in 0.01s =========================