Skip to content

Attribute Error in HTMLTestResult Object #7

@shashankkhemka

Description

@shashankkhemka

I was using this to generate reports for pyunit testing and I found a common error. It has been reported on stackoverflow on this link: https://stackoverflow.com/questions/71858651/attributeerror-htmltestresult-object-has-no-attribute-count-relevant-tb-lev.

But there has been no help. I found a old codebase (https://svn.python.org/projects/python/tags/r312/Lib/unittest.py) for this and found that the method '_count_relevant_tb_levels' is missing from this codebase. I tried adding it manually to my local installation of the package and it works now.

Please check this and verify to revise the package.

The error I am experiencing is: AttributeError: 'HtmlTestResult' object has no attribute '_count_relevant_tb_levels'. Did you mean: '_is_relevant_tb_level'?

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