Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Error in HTMLTestResult Object #7

Open
shashankkhemka opened this issue May 31, 2022 · 1 comment
Open

Attribute Error in HTMLTestResult Object #7

shashankkhemka opened this issue May 31, 2022 · 1 comment

Comments

@shashankkhemka
Copy link

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'?

@anthobio23
Copy link

the problem lies in a discrepancy by a method used at the producer or report output level. Here is a link to the package in which I correct the issue, in the feature-relevant branch.

pyunireport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants