Skip to content

Commit 7b25ef2

Browse files
committed
Don't log on fake error states such as SkipTest.
1 parent 8e7641b commit 7b25ef2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seleniumbase/plugins/base_plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,14 @@ def addError(self, test, err, capt=None):
100100
error states, we want to make sure that they don't show up in
101101
the nose output as errors.
102102
"""
103-
self.__log_all_options_if_none_specified(test)
104103
if (err[0] == errors.BlockedTest or
105104
err[0] == errors.SkipTest or
106105
err[0] == errors.DeprecatedTest):
107106
print err[1].__str__().split('''-------------------- >> '''
108107
'''begin captured logging'''
109108
''' << --------------------''', 1)[0]
109+
else:
110+
self.__log_all_options_if_none_specified(test)
110111

111112
def handleError(self, test, err, capt=None):
112113
"""

0 commit comments

Comments
 (0)