Skip to content

Commit 75ca987

Browse files
committed
Fix edge case with tearDown() method
1 parent e08480d commit 75ca987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,7 @@ def tearDown(self):
27342734
"""
27352735
has_exception = False
27362736
if sys.version.startswith('3') and hasattr(self, '_outcome'):
2737-
if self._outcome.errors:
2737+
if hasattr(self._outcome, 'errors') and self._outcome.errors:
27382738
has_exception = True
27392739
else:
27402740
has_exception = sys.exc_info()[1] is not None

0 commit comments

Comments
 (0)