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

Method test_invalid_pid_dead

ci/tests/test_file_lock_rw.py:38–42  ·  view source on GitHub ↗

Invalid PIDs should be detected as dead

(self)

Source from the content-addressed store, hash-verified

36 self.assertTrue(is_process_alive(os.getpid()))
37
38 def test_invalid_pid_dead(self) -> None:
39 """Invalid PIDs should be detected as dead"""
40 self.assertFalse(is_process_alive(0))
41 self.assertFalse(is_process_alive(-1))
42 self.assertFalse(is_process_alive(999999)) # Unlikely to exist
43
44
45class TestStaleLockDetection(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

is_process_aliveFunction · 0.90

Tested by

no test coverage detected