Skip to content

Commit 96f1442

Browse files
committed
Add test to agree on desired aligned behavior of ls for empty directories.
1 parent 378cae6 commit 96f1442

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gcsfs/tests/test_core.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ def test_ls_touch(gcs):
177177
assert {d["name"] for d in L_d} == {a, b}
178178

179179

180+
# DO NOT MERGE!
181+
# Note: We assume this test will fail. Once it does in CI, we will update the code to make it pass.
182+
# Only then can this PR be approved and merged.
183+
def test_ls_empty_dir(gcs):
184+
gcs.mkdir(TEST_BUCKET + "/test")
185+
assert gcs.ls(TEST_BUCKET + "/test", False) == []
186+
187+
180188
def test_rm(gcs):
181189
assert not gcs.exists(a)
182190
gcs.touch(a)

0 commit comments

Comments
 (0)