MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_read_lock_helper

Method test_read_lock_helper

ci/tests/test_file_lock_rw.py:170–176  ·  view source on GitHub ↗

Test read_lock helper function

(self)

Source from the content-addressed store, hash-verified

168 self.assertIsNotNone(lock)
169
170 def test_read_lock_helper(self) -> None:
171 """Test read_lock helper function"""
172 test_file = Path(self.temp_dir) / "data.txt"
173 test_file.touch()
174
175 with read_lock(test_file, timeout=1.0) as lock:
176 self.assertIsNotNone(lock)
177
178 def test_read_lock_allows_concurrent(self) -> None:
179 """Read locks should allow concurrent access (same PID = re-entrant)."""

Callers

nothing calls this directly

Calls 1

read_lockFunction · 0.90

Tested by

no test coverage detected