Skip to content

Commit

Permalink
Provide a default
Browse files Browse the repository at this point in the history
  • Loading branch information
vasole committed Nov 22, 2023
1 parent 3afdea8 commit ea7ca95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/silx/gui/utils/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ def _currentTestSucceeded(self):
# Python 3.11+
result = self._outcome.result

if hasattr(self._outcome, "success"):
if self._outcome is None:
return True
elif hasattr(self._outcome, "success"):
# using pytest
return self._outcome.success
else:
Expand Down

0 comments on commit ea7ca95

Please sign in to comment.