We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3662c10 commit 0de401bCopy full SHA for 0de401b
seleniumbase/fixtures/base_case.py
@@ -3903,11 +3903,11 @@ def skip(self, reason=""):
3903
self.__passed_then_skipped = True
3904
self.__will_be_skipped = True
3905
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
+ if self.with_db_reporting:
+ if self.is_pytest:
+ self.__skip_reason = reason
+ else:
+ self._nose_skip_reason = reason
3911
# Add skip reason to the logs
3912
if not hasattr(self, "_using_sb_fixture"):
3913
test_id = self.__get_test_id() # Recalculate the test id
0 commit comments