Skip to content

Commit 5c55fe0

Browse files
committed
Fix issue with nosetests tearDown()
1 parent 27ad030 commit 5c55fe0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6377,7 +6377,9 @@ def tearDown(self):
63776377
super(SubClassOfBaseCase, self).tearDown()
63786378
"""
63796379
try:
6380-
with_selenium = self.with_selenium
6380+
is_pytest = self.is_pytest # This fails if overriding setUp()
6381+
if is_pytest:
6382+
with_selenium = self.with_selenium
63816383
except Exception:
63826384
sub_class_name = str(
63836385
self.__class__.__bases__[0]).split('.')[-1].split("'")[0]

0 commit comments

Comments
 (0)