We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85b79c2 commit 3467c28Copy full SHA for 3467c28
cuda_core/tests/test_program_cache.py
@@ -1433,7 +1433,10 @@ def test_filestream_cache_clear_preserves_young_tmp_files(tmp_path):
1433
with FileStreamProgramCache(root) as cache:
1434
cache.clear()
1435
# Committed entry is gone, ancient orphan is gone, young temp survives.
1436
- assert list((root / "entries").rglob("*.*")) == [] # no committed entry files
+ # 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 == []
1440
assert young_tmp.exists()
1441
assert not ancient_tmp.exists()
1442
0 commit comments