Skip to content

Commit 0de401b

Browse files
committed
Update "skip" logic
1 parent 3662c10 commit 0de401b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,11 +3903,11 @@ def skip(self, reason=""):
39033903
self.__passed_then_skipped = True
39043904
self.__will_be_skipped = True
39053905
sb_config._results[test_id] = "Skipped"
3906-
elif self.is_pytest and self.with_db_reporting:
3907-
self.__skip_reason = reason
3908-
elif reason and not self.is_pytest:
3909-
# Only needed for nosetest db reporting
3910-
self._nose_skip_reason = reason
3906+
if self.with_db_reporting:
3907+
if self.is_pytest:
3908+
self.__skip_reason = reason
3909+
else:
3910+
self._nose_skip_reason = reason
39113911
# Add skip reason to the logs
39123912
if not hasattr(self, "_using_sb_fixture"):
39133913
test_id = self.__get_test_id() # Recalculate the test id

0 commit comments

Comments
 (0)