Skip to content

Commit 505bdb3

Browse files
fixed linting issue
1 parent b92d28f commit 505bdb3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

py/conftest.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def __init__(self, driver_class, request):
149149
self.driver_class = driver_class
150150
self._request = request
151151
self._driver = None
152-
self._platform = None
153152
self._service = None
154153
self.kwargs = {}
155154
self.options = driver_class
@@ -190,8 +189,7 @@ def driver_class(self, cls_name):
190189

191190
@property
192191
def exe_platform(self):
193-
self._platform = platform.system()
194-
return self._platform
192+
return platform.system()
195193

196194
@property
197195
def browser_path(self):
@@ -264,7 +262,7 @@ def options(self, cls_name):
264262
if self.driver_class == self.supported_drivers.webkitgtk:
265263
self._options.overlay_scrollbars_enabled = False
266264
if self.browser_path is not None:
267-
self._options.binary_location = browser_path.strip("'")
265+
self._options.binary_location = self.browser_path.strip("'")
268266
if self.browser_args is not None:
269267
for arg in self.browser_args.split():
270268
self._options.add_argument(arg)

0 commit comments

Comments
 (0)