update based on
@@ -152,7 +152,9 @@ def clean_up():
@pytest.fixture(scope="function", autouse=True)
def filesystem_isolate():
- with CliRunner().isolated_filesystem():
+ # Click>=8 implements temp_dir argument which depends on python>=3.7
+ kwargs = dict(temp_dir=tmp_path) if sys.version_info >= (3, 7) else {}
+ with CliRunner().isolated_filesystem(**kwargs):
yield
