diff --git a/CHANGELOG.rst b/CHANGELOG.rst index afa4b4f7c..30574f574 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -67,7 +67,7 @@ Features rather than implicitly. -- `#5914 `_: ``pytester`` learned two new functions, `no_fnmatch_line `_ and +- `#5914 `_: `testdir `__ learned two new functions, `no_fnmatch_line `_ and `no_re_match_line `_. The functions are used to ensure the captured text *does not* match the given @@ -77,12 +77,14 @@ Features .. code-block:: python + result = testdir.runpytest() assert re.match(pat, result.stdout.str()) is None Or the ``in`` operator: .. code-block:: python + result = testdir.runpytest() assert text in result.stdout.str() But the new functions produce best output on failure.