diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index bef9ec47b..ba3b48783 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -666,6 +666,11 @@ def approx(expected, rel=None, abs=None, nan_ok: bool = False) -> ApproxBase: specialised test helpers in :std:doc:`numpy:reference/routines.testing` if you need support for comparisons, NaNs, or ULP-based tolerances. + To match strings using regex, you can use + `Matches `_ + from the + `re_assert package `_. + .. warning:: .. versionchanged:: 3.2