You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytest tries to highlight failed assertions but fails. I guess the reason is pytest-tap unregisters "terminalreporter" plugin.
test_sample.py:
deftest_fail():
a= [1]
b= {2}
asserta==b
pytest output:
$ pytest
================================================================================================================= test session starts ==================================================================================================================
platform linux -- Python 3.12.3, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/kvk1920/pytest-tap-repro
plugins: tap-3.5
collected 1 item
test_sample.py F [100%]
======================================================================================================================= FAILURES =======================================================================================================================
______________________________________________________________________________________________________________________ test_fail _______________________________________________________________________________________________________________________
def test_fail():
a = [1]
b = {2}
> assert a == b
E assert [1] == {2}
E
E Use -v to get more diff
test_sample.py:4: AssertionError
=============================================================================================================== short test summary info ================================================================================================================
FAILED test_sample.py::test_fail - assert [1] == {2}
================================================================================================================== 1 failed in 0.02s ===================================================================================================================
pytest tries to highlight failed assertions but fails. I guess the reason is pytest-tap unregisters "terminalreporter" plugin.
test_sample.py:
pytest
output:pytest --tap
output:python3 version: 3.12.3
pip3 version: 24.0
pip3 freeze:
The text was updated successfully, but these errors were encountered: