From 3c0ea827eb42ba1f89797f22f7043e64b82a2548 Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Tue, 18 Jul 2023 11:32:15 +0200 Subject: [PATCH] Add link to PEP-678 --- src/_pytest/python_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index ac0ec5e5e..a045da220 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -843,7 +843,8 @@ def raises( # noqa: F811 >>> with pytest.raises(ValueError, match=r'must be \d+$'): ... raise ValueError("value must be 42") - The ``match`` argument searches the formatted exception string, which includes any ``__notes__``: + The ``match`` argument searches the formatted exception string, which includes any + `PEP-678 ` ``__notes__``: >>> with pytest.raises(ValueError, match=r'had a note added'): # doctest: +SKIP ... e = ValueError("value must be 42")