Skip to content

Commit 73d50a9

Browse files
committed
remove startswith
1 parent 2356a26 commit 73d50a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

py/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

py/test/selenium/webdriver/firefox/firefox_sizing_tests.py

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

2626

2727
def 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")

0 commit comments

Comments
 (0)