Exemple #1
0
def time_sleep(_):
    sigchld_handler(None, None)
Exemple #2
0
 def test_reap_children(self):
     reap_children()
     with patch("os.waitpid", Mock(return_value=(0, 0))):
         sigchld_handler(None, None)
         reap_children()
Exemple #3
0
 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())
Exemple #4
0
 def test_reap_children(self):
     reap_children()
     os.waitpid = os_waitpid
     sigchld_handler(None, None)
     reap_children()