@@ -1471,7 +1471,7 @@ def test_filestream_cache_clear_does_not_break_concurrent_writer(tmp_path):
14711471
14721472 # Stage a temp file that mimics an in-flight write.
14731473 inflight_tmp = root / "tmp" / "entry-inflight"
1474- inflight_tmp .write_bytes (b"\x80 \x05 fake-pickle " ) # contents do not matter
1474+ inflight_tmp .write_bytes (b"in-flight payload " ) # contents do not matter
14751475
14761476 # Concurrent clear() from another cache handle.
14771477 with FileStreamProgramCache (root ) as other :
@@ -1502,8 +1502,8 @@ def test_filestream_cache_size_cap_does_not_unlink_replaced_file(tmp_path):
15021502
15031503 from cuda .core .utils import FileStreamProgramCache
15041504
1505- # Cap fits two entries (each ~2123 bytes on disk for a 2000-byte
1506- # payload, including pickle overhead ) but not three.
1505+ # Cap fits two 2000-byte entries (raw payload only -- no per-entry
1506+ # framing ) but not three.
15071507 cap = 5000
15081508 root = tmp_path / "fc"
15091509 with FileStreamProgramCache (root , max_size_bytes = cap ) as cache :
@@ -1567,8 +1567,8 @@ def test_filestream_cache_size_cap_counts_tmp_files(tmp_path):
15671567
15681568def test_filestream_cache_handles_long_keys (tmp_path ):
15691569 """Arbitrary-length keys must not overflow per-component filename limits.
1570- The filename is a fixed-length hash; the original key is verified from
1571- the pickled record ."""
1570+ The filename is a fixed-length 256-bit blake2b digest; key uniqueness
1571+ relies on the digest's collision resistance ."""
15721572 from cuda .core .utils import FileStreamProgramCache
15731573
15741574 long_bytes_key = b"x" * 4096
0 commit comments