From 0575b8b980c86e249300144cae998ff7d0a69e58 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Mon, 11 Sep 2023 09:41:31 -0400 Subject: [PATCH] add test --- fsspec/tests/test_core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fsspec/tests/test_core.py b/fsspec/tests/test_core.py index ff3dee4ba..e2d4fb995 100644 --- a/fsspec/tests/test_core.py +++ b/fsspec/tests/test_core.py @@ -306,3 +306,8 @@ def test_chained_url(ftp_writable): url += f"::ftp://{username}:{password}@{host}:{port}/archive.zip" with fsspec.open(url, "rb") as f: assert f.read() == data["afile"] + + +def test_automkdir_local(): + fs, _ = fsspec.core.url_to_fs("file://", auto_mkdir=True) + assert fs.auto_mkdir is True