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 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')