From a3514d758f924fc5f6d8d241eecfff84b8d047ca Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 08:46:16 +0000 Subject: [PATCH 1/2] Update dependency tox to v4.56.4 --- examples/python/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/python/requirements.txt b/examples/python/requirements.txt index 6f3c7cc286a..5a618aa4d44 100644 --- a/examples/python/requirements.txt +++ b/examples/python/requirements.txt @@ -5,5 +5,5 @@ pytest-trio==0.8.0 pytest-rerunfailures==16.4 flake8==7.3.0 requests==2.34.2 -tox==4.32.0 +tox==4.56.4 pytest-xdist==3.8.0 From 4decac33fa7731f8c850d4b3703bcf9d856ee870 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Thu, 16 Jul 2026 11:29:10 +0200 Subject: [PATCH 2/2] fix: tolerate Windows file-lock races when cleaning up log_path fixture On Windows, EdgeService's log file can still be held open by the driver process for a moment after driver.quit(), so os.remove() raises PermissionError in teardown and fails tests/browsers/test_edge.py's log-related tests (test_log_to_file, test_log_level, test_log_features, test_build_checks). The Ruby examples avoid this by cleaning up with FileUtils.rm_f, which ignores StandardError-derived failures by design. Mirror that with contextlib.suppress(OSError) around the removal. Co-Authored-By: Claude Sonnet 5 --- examples/python/tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/python/tests/conftest.py b/examples/python/tests/conftest.py index 48a47302231..d3f26e3def1 100644 --- a/examples/python/tests/conftest.py +++ b/examples/python/tests/conftest.py @@ -1,3 +1,4 @@ +import contextlib import logging import os import socket @@ -106,7 +107,8 @@ def log_path(): logger.removeHandler(handler) handler.close() - os.remove(log_path) + with contextlib.suppress(OSError): + os.remove(log_path) @pytest.fixture(scope='function')