diff --git a/changelog/7966.bugfix.rst b/changelog/7966.bugfix.rst index de0557680..849bdb06e 100644 --- a/changelog/7966.bugfix.rst +++ b/changelog/7966.bugfix.rst @@ -1 +1 @@ -Removes unhelpful error message from assertion rewrite mechanism when exceptions raised in __iter__ methods, and instead treats them as un-iterable. +Removed unhelpful error message from assertion rewrite mechanism when exceptions are raised in ``__iter__`` methods. Now they are treated un-iterable instead.