Skip to content

Commit 20a2e1d

Browse files
committed
[py] Copy environment on all platforms
1 parent 4879afe commit 20a2e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,10 @@ def wait_for_server(url, timeout):
313313
"is using port {}, continuing...".format(_port)
314314
)
315315
except Exception:
316+
remote_env = os.environ.copy()
316317
if platform.system() == "Linux":
317318
# There are issues with window size/position when running Firefox
318319
# under Wayland, so we use XWayland instead.
319-
remote_env = os.environ.copy()
320320
remote_env["MOZ_ENABLE_WAYLAND"] = "0"
321321
print("Starting the Selenium server")
322322
process = subprocess.Popen(

0 commit comments

Comments
 (0)