Skip to content

Commit a558b0b

Browse files
authored
Merge pull request #655 from seleniumbase/fix-issue-with-nosetests
Fix issue with nosetests tearDown()
2 parents 27ad030 + 45dac7a commit a558b0b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.46.5',
57+
version='1.46.6',
5858
description='Web Automation and Test Framework - https://seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)