Skip to content

Commit ceeb514

Browse files
committed
Mention register_assert_rewrite explicitly
It helps mentioning this explicitly in the changelog. Fixes #1871.
1 parent b38cf77 commit ceeb514

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ time or change existing behaviors in order to make them less surprising/more use
8989

9090
* Reinterpretation mode has now been removed. Only plain and rewrite
9191
mode are available, consequently the ``--assert=reinterp`` option is
92-
no longer available. Thanks `@flub`_ for the PR.
92+
no longer available. This also means files imported from plugins or
93+
``conftest.py`` will not benefit from improved assertions by
94+
default, you should use ``pytest.register_assert_rewrite()`` to
95+
explicitly turn on assertion rewriting for those files. Thanks
96+
`@flub`_ for the PR.
9397

9498
* The following deprecated commandline options were removed:
9599

0 commit comments

Comments
 (0)