@@ -15,8 +15,9 @@ def test_clean_cache_when_cache_exists(tmp_path, monkeypatch, capfd):
15
15
fake_cache_dir .mkdir (parents = True , exist_ok = True )
16
16
assert fake_cache_dir .exists ()
17
17
18
- cibw_sentinel = fake_cache_dir / ".cibuildwheel_cached"
19
- cibw_sentinel .write_text ("# Created by cibuildwheel automatically" , encoding = "utf-8" )
18
+ cibw_sentinel = fake_cache_dir / "CACHEDIR.TAG"
19
+ cibw_sentinel .write_text ("Signature: 8a477f597d28d172789f06886806bc55\n "
20
+ "# This file is a cache directory tag created by cibuildwheel.\n " , encoding = "utf-8" )
20
21
21
22
dummy_file = fake_cache_dir / "dummy.txt"
22
23
dummy_file .write_text ("hello" )
@@ -56,8 +57,9 @@ def test_clean_cache_with_error(tmp_path, monkeypatch, capfd):
56
57
fake_cache_dir .mkdir (parents = True , exist_ok = True )
57
58
assert fake_cache_dir .exists ()
58
59
59
- cibw_sentinel = fake_cache_dir / ".cibuildwheel_cached"
60
- cibw_sentinel .write_text ("# Created by cibuildwheel automatically\n " )
60
+ cibw_sentinel = fake_cache_dir / "CACHEDIR.TAG"
61
+ cibw_sentinel .write_text ("Signature: 8a477f597d28d172789f06886806bc55\n "
62
+ "# This file is a cache directory tag created by cibuildwheel.\n " )
61
63
62
64
monkeypatch .setattr (sys , "argv" , ["cibuildwheel" , "--clean-cache" ])
63
65
0 commit comments