-
Notifications
You must be signed in to change notification settings - Fork 252
Closed as not planned
Description
Hello,
I was recently still using pytest 7.3.1 and upgraded pytest-html from 3.2.0 to 4.1.1.
Without changing anything else, it failed to generate the report with the following error:
INTERNALERROR> File "C:\FSBMS\tools\main\environment\python\Python310\lib\site-packages\pytest_html\basereport.py", line 291, in _process_report
INTERNALERROR> self._report.add_test(data, report, outcome, processed_logs)
INTERNALERROR> File "C:\FSBMS\tools\main\environment\python\Python310\lib\site-packages\pytest_html\report_data.py", line 140, in add_test
INTERNALERROR> test_data["log"] = _handle_ansi("\n".join(logs))
INTERNALERROR> TypeError: sequence item 0: expected str instance, table found
I have the full log if necessary. I didn't prepare a sample code because I don't think it's relevant, what happens is probably not related to the content of the test.
As you can see I'm using python 3.10.
Upgrading pytest to 8.1.1 solved the issue, but I figured it's still worth noting since I couldn't find any incompatibility note in the doc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels