File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/selenium/webdriver/firefox Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def exe_platform(self):
186186 return "Windows"
187187 elif sys .platform == "darwin" :
188188 return "Darwin"
189- elif sys .platform . startswith ( "linux" ) :
189+ elif sys .platform == "linux" :
190190 return "Linux"
191191 else :
192192 return sys .platform .title ()
@@ -404,7 +404,7 @@ def server(request):
404404 )
405405
406406 remote_env = os .environ .copy ()
407- if sys .platform . startswith ( "linux" ) :
407+ if sys .platform == "linux" :
408408 # There are issues with window size/position when running Firefox
409409 # under Wayland, so we use XWayland instead.
410410 remote_env ["MOZ_ENABLE_WAYLAND" ] = "0"
Original file line number Diff line number Diff line change 2525
2626
2727def is_running_wayland ():
28- return sys .platform . startswith ( "linux" ) and os .getenv ("WAYLAND_DISPLAY" )
28+ return sys .platform == "linux" and os .getenv ("WAYLAND_DISPLAY" )
2929
3030
3131@pytest .mark .skipif (not is_running_wayland (), reason = "This test only runs on Linux under Wayland" )
You can’t perform that action at this time.
0 commit comments