def time_sleep(_): sigchld_handler(None, None)
def test_reap_children(self): reap_children() with patch("os.waitpid", Mock(return_value=(0, 0))): sigchld_handler(None, None) reap_children()
def test_reap_children(self): self.assertIsNone(reap_children()) with patch('os.waitpid', Mock(return_value=(0, 0))): sigchld_handler(None, None) self.assertIsNone(reap_children())
def test_reap_children(self): reap_children() os.waitpid = os_waitpid sigchld_handler(None, None) reap_children()