Skip to content

Commit fc13d08

Browse files
committed
fix(tests): Be more lenient when handling pytest exceptions
1 parent 9faa0ca commit fc13d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kazoo/tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def pytest_exception_interact(node, call, report):
7-
if hasattr(node._testcase, "cluster"):
7+
if hasattr(node, "_testcase") and hasattr(node._testcase, "cluster"):
88
cluster = node._testcase.cluster
99
log.error("Zookeeper cluster logs:")
1010
for logs in cluster.get_logs():

0 commit comments

Comments
 (0)