From 399d4c1988b649f719a13d92e4f566f1dff1fd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Mon, 6 May 2024 14:34:59 +0200 Subject: [PATCH] Ignore --- tests/__init__.py | 0 tests/conftest.py | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 tests/__init__.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/conftest.py b/tests/conftest.py index 96b831730f..1f821722c4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -12,6 +12,10 @@ from lightning_utilities.core.imports import RequirementCache +# Ignore cleanup warnings from pytest (rarely happens due to a race condition when executing pytest in parallel) +warnings.filterwarnings("ignore", category=pytest.PytestWarning, message=r".*\(rm_rf\) error removing.*") + + @pytest.fixture() def fake_checkpoint_dir(tmp_path): os.chdir(tmp_path)