Skip to content

Commit 3467c28

Browse files
committed
fixup! test(core.utils): use is_file filter instead of *.* glob in clear test
1 parent 85b79c2 commit 3467c28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cuda_core/tests/test_program_cache.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,10 @@ def test_filestream_cache_clear_preserves_young_tmp_files(tmp_path):
14331433
with FileStreamProgramCache(root) as cache:
14341434
cache.clear()
14351435
# Committed entry is gone, ancient orphan is gone, young temp survives.
1436-
assert list((root / "entries").rglob("*.*")) == [] # no committed entry files
1436+
# Filenames are hash-like (no extension), so use a file filter rather
1437+
# than a "*.*" glob.
1438+
remaining_entries = [p for p in (root / "entries").rglob("*") if p.is_file()]
1439+
assert remaining_entries == []
14371440
assert young_tmp.exists()
14381441
assert not ancient_tmp.exists()
14391442

0 commit comments

Comments
 (0)