Add a change note on issue #7310

This commit is contained in:
Sviatoslav Sydorenko 2020-06-03 16:55:09 +02:00
parent 049f5b513a
commit 1c465bd32f
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Fix ``UnboundLocalError: local variable 'letter' referenced before
assignment`` in ``_pytest.terminal.pytest_report_teststatus()``
when plugins return report objects in an unconventional state.
This was making ``pytest_report_teststatus()`` skip
entering if-block branches that declare the ``letter`` variable.
The fix was to set the initial value of the ``letter`` before
the if-block cascade so that it always has a value.