@@ -25,14 +25,14 @@ Running pytest now produces this output::
2525 platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
2626 rootdir: $REGENDOC_TMPDIR, inifile:
2727 collected 1 item
28-
28+
2929 test_show_warnings.py . [100%]
30-
30+
3131 ============================= warnings summary =============================
3232 test_show_warnings.py::test_one
3333 $REGENDOC_TMPDIR/test_show_warnings.py:4: UserWarning: api v1, should use functions from v2
3434 warnings.warn(UserWarning("api v1, should use functions from v2"))
35-
35+
3636 -- Docs: http://doc.pytest.org/en/latest/warnings.html
3737 =================== 1 passed, 1 warnings in 0.12 seconds ===================
3838
@@ -45,17 +45,17 @@ them into errors::
4545 F [100%]
4646 ================================= FAILURES =================================
4747 _________________________________ test_one _________________________________
48-
48+
4949 def test_one():
5050 > assert api_v1() == 1
51-
52- test_show_warnings.py:8:
53- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
54-
51+
52+ test_show_warnings.py:8:
53+ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
54+
5555 def api_v1():
5656 > warnings.warn(UserWarning("api v1, should use functions from v2"))
5757 E UserWarning: api v1, should use functions from v2
58-
58+
5959 test_show_warnings.py:4: UserWarning
6060 1 failed in 0.12 seconds
6161
@@ -78,6 +78,9 @@ Both ``-W`` command-line option and ``filterwarnings`` ini option are based on P
7878`-W option `_ and `warnings.simplefilter `_, so please refer to those sections in the Python
7979documentation for other examples and advanced usage.
8080
81+
82+ .. _`filterwarnings` :
83+
8184``@pytest.mark.filterwarnings ``
8285-------------------------------
8386
0 commit comments