It seems to have been added in #1439 to fix #1178. This was only relevant for Python 2 where it was tempting to use str (== bytes) literals instead of unicode literals. In Python 3, it is unlikely that anyone passes bytes to these functions.
8 lines
326 B
ReStructuredText
8 lines
326 B
ReStructuredText
``pytest.fail``, ``pytest.xfail`` and ``pytest.skip`` no longer support bytes for the message argument.
|
|
|
|
This was supported for Python 2 where it was tempting to use ``"message"``
|
|
instead of ``u"message"``.
|
|
|
|
Python 3 code is unlikely to pass ``bytes`` to these functions. If you do,
|
|
please decode it to an ``str`` beforehand.
|