Skip to content

Commit 603f6a3

Browse files
committed
fix #919 - protect against item with no funcargs
1 parent 79c6f30 commit 603f6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dash/testing/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def pytest_runtest_makereport(item, call): # pylint: disable=unused-argument
7575
rep = outcome.get_result()
7676

7777
# we only look at actual failing test calls, not setup/teardown
78-
if rep.when == "call" and rep.failed:
78+
if rep.when == "call" and rep.failed and hasattr(item, "funcargs"):
7979
for name, fixture in item.funcargs.items():
8080
try:
8181
if name in {"dash_duo", "dash_br", "dashr"}:

0 commit comments

Comments
 (0)