import warnings import pytest # 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.*")