diff --git a/testing/python/collect.py b/testing/python/collect.py index 6b9c6db4e..ccd5c11e7 100644 --- a/testing/python/collect.py +++ b/testing/python/collect.py @@ -841,7 +841,7 @@ class TestConftestCustomization(object): def pytest_pycollect_makeitem(): outcome = yield if outcome.excinfo is None: - result = outcome.result + result = outcome.get_result() if result: for func in result: func._some123 = "world"