diff --git a/tests/io/test_content_cache.py b/tests/io/test_content_cache.py index 816fd23358..e57dc4e640 100644 --- a/tests/io/test_content_cache.py +++ b/tests/io/test_content_cache.py @@ -72,7 +72,8 @@ def test_cache_expires_entries(metadata_file: str) -> None: with patch.object(io, "new_input", side_effect=io.new_input) as new_input: _open_metadata_file(io, metadata_file) - time.sleep(0.01) + # Longer than the 15.6 ms steps of time.monotonic() on Windows before Python 3.13 + time.sleep(0.05) _open_metadata_file(io, metadata_file) assert new_input.call_count == 2