Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ def wait_for_predicate(self, predicate, timeout=5 * 60, interval=5):
timeout -= interval
import inspect

raise Exception(
f"Timed out waiting for Truth from predicate: {inspect.getsource(predicate).strip()}"
)
try:
source = inspect.getsource(predicate).strip()
except (TypeError, OSError):
source = repr(predicate)
raise Exception(f"Timed out waiting for Truth from predicate: {source}")

def get_tank(self, index):
# TODO
Expand Down
Loading