Skip to content

pytest-html 4.x.x incompatible with pytest-metadata 3.1.1 ? #809

Description

@supermete

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions