Skip to content

Commit 1be41d6

Browse files
committed
Explicitly catch non-behave errors
1 parent e87874f commit 1be41d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,11 @@ def wrap_text(text, width):
109109

110110
headers = ['Feature', 'Step', 'Error Type', 'Location']
111111
print(tabulate.tabulate(table_data, headers=headers, tablefmt='fancy_grid'))
112+
113+
assert not caught_exceptions
112114

113115
if base.startswith('fail'):
114-
assert len(error_outcomes) > 0 or caught_exceptions
116+
assert len(error_outcomes) > 0
115117
elif base.startswith('pass'):
116118
assert len(error_outcomes) == 0 and len(activating_outcomes) > 0
117119
elif base.startswith('na'):

0 commit comments

Comments
 (0)