GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — wasxfail result outcome attribute not consistent for XFailed tests · Issue #11067 · pytest-dev/pytest Closed Labels type: enhancementnew feature or API change, should be merged into features branch Descriptioncontent of @pytest.hookimpl(hookwrapper=True) def pytest_runtest_makereport(item, call): outcome = yield report = outcome.get_result() if report.when == 'call': xfail = hasattr(report, 'wasxfail') if not report.failed and not report.skipped and not xfail: print("Passed") elif report.failed and not report.skipped: print("Failed") elif not report.failed and not report.skipped and xfail: print("XPassed") elif not report.failed and report.skipped: print("XFailed") if xfail: print("Reason: ", report.wasxfail) content of The output of the test is: The first test xfailed because of a marker, and the second test xfailed due to an explicit call to The outputs are not coherent The output for test_2 should be Tested with version 7.3.1 Activity
MetadataMetadataAssigneesLabelstype: enhancementnew feature or API change, should be merged into features branch TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |