Skip to content

Commit 95027a2

Browse files
fixed linting issue
1 parent 2f66da6 commit 95027a2

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
@@ -147,7 +147,6 @@ def __init__(self, driver_class, request):
147147
self.driver_class = driver_class
148148
self._request = request
149149
self._driver = None
150-
self._platform = None
151150
self._service = None
152151
self.kwargs = {}
153152
self.options = driver_class
@@ -188,8 +187,7 @@ def driver_class(self, cls_name):
188187

189188
@property
190189
def exe_platform(self):
191-
self._platform = platform.system()
192-
return self._platform
190+
return platform.system()
193191

194192
@property
195193
def browser_path(self):
@@ -262,7 +260,7 @@ def options(self, cls_name):
262260
if self.driver_class == self.supported_drivers.webkitgtk:
263261
self._options.overlay_scrollbars_enabled = False
264262
if self.browser_path is not None:
265-
self._options.binary_location = browser_path.strip("'")
263+
self._options.binary_location = self.browser_path.strip("'")
266264
if self.browser_args is not None:
267265
for arg in self.browser_args.split():
268266
self._options.add_argument(arg)

0 commit comments

Comments
 (0)