diff --git a/tests/test_utils/conftest.py b/tests/test_utils/conftest.py index 8a10943..444352d 100644 --- a/tests/test_utils/conftest.py +++ b/tests/test_utils/conftest.py @@ -33,7 +33,9 @@ def onerror(func, path, exc_info): # pylint: disable=unused-argument except Exception: # pylint: disable=broad-exception-caught pass # Last resort: ignore if still fails - shutil.rmtree(dir_path, onerror=onerror) + shutil.rmtree( # pylint: disable=deprecated-argument + dir_path, onerror=onerror + ) @pytest.fixture