Skip to content

AttributeError: 'Failure' object has no attribute 'is_passed' #140

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

Open
davidfischer-ch opened this issue Oct 17, 2024 · 2 comments · May be fixed by #142
Open

AttributeError: 'Failure' object has no attribute 'is_passed' #140

davidfischer-ch opened this issue Oct 17, 2024 · 2 comments · May be fixed by #142

Comments

@davidfischer-ch
Copy link

Hello,

We face the following exception when parsing one of our JUnit result file with junitparser version 3.2.0:

Traceback (most recent call last):
  File "/home/build/venv/bin/junitparser", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/build/venv/lib/python3.12/site-packages/junitparser/cli.py", line 97, in main
    return verify(
           ^^^^^^^
  File "/home/build/venv/lib/python3.12/site-packages/junitparser/cli.py", line 30, in verify
    if not case.is_passed and not case.is_skipped:
           ^^^^^^^^^^^^^^
AttributeError: 'Failure' object has no attribute 'is_passed'

Can you help us fixing the issue?

Thank you.

Content:

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Health Check Tests" tests="27" time="0.06" timestamp="2024-10-17T12:32:40+02:00" failures="4"><testcase name="Database connectivity check" time="0"><failure message="Error SQLSTATE[08006] [7] could not translate host name &quot;port=&quot; to address: Name or service not known"/></testcase><testcase name="Database CRUD check" time="0"><failure message="Error Call to a member function exec() on bool"/></testcase><testcase name="HTTP connectivity check with " time="0"><failure message="Error "/></testcase><testcase name="HTTP connectivity check with " time="0"><failure message="Error "/></testcase><testcase name="Check Memory Limit" time="0"/><testcase name="Check post_max_size" time="0"/><testcase name="Check upload_max_filesize" time="0"/><testcase name="Check max_execution_time" time="0"/><testcase name="Check Logs_errors" time="0"/><testcase name="Check php_sapi_name" time="0"/><testcase name="Check current_user" time="0"/><testcase name="Check time zone" time="0"/><testcase name="Check change time limit" time="0"/><testcase name="Check change memory limit" time="0"/><testcase name="Check extensions" time="0"/><testcase name="Check Apache" time="0"/><testcase name="Check Apache version" time="0.03"/><testcase name="Check PHP version" time="0"/><testcase name="Check apache server signature" time="0"/><testcase name="Check apache ServerTokens Prod" time="0"/><testcase name="Check Allowoveride_all" time="0"/><testcase name="Check php_allow_url_fopen" time="0"/><testcase name="Check php_allow_url_include" time="0"/><testcase name="Check php_expose_php" time="0"/><testcase name="Check php_session_save_path" time="0"/><testcase name="Check php_session_use_trans_sid" time="0.03"/><testcase name="Check php_cli" time="0"/></testsuite>
@themanifold
Copy link

Very similar to #111

@EnricoMi
Copy link
Collaborator

See #142.

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

Successfully merging a pull request may close this issue.

3 participants