Skip to content

Commit 0880489

Browse files
committed
test: don't check callspec on functions
1 parent 9d06853 commit 0880489

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/conftest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,11 @@ def pytest_runtest_makereport(item, call):
639639
# elif "cas_session" in item.callspec.params:
640640
# key = item.callspec.params["cas_session"]
641641
# else:
642-
key = item.callspec.id
642+
if hasattr(item, "callspec"):
643+
key = item.callspec.id
643644

644-
# Track that this test was the last test to fail for this Viya version
645-
parent._previousfailed[key] = item
645+
# Track that this test was the last test to fail for this Viya version
646+
parent._previousfailed[key] = item
646647

647648

648649
def pytest_runtest_setup(item):

0 commit comments

Comments
 (0)