497ebbb661f903e2aaf8a60f314982323101bf93,tests/python/pants_test/pantsd/test_process_manager.py,TestProcessManager,test_daemon_spawn_child,#TestProcessManager#,265

Before Change


  @mock.patch("os._exit", **PATCH_OPTS)
  @mock.patch("os.setsid", **PATCH_OPTS)
  def test_daemon_spawn_child(self, *args):
    with mock.patch("os.fork", **PATCH_OPTS) as mock_fork:
      mock_fork.return_value = 0    // Simulate the child.
      self.pm.daemon_spawn()

After Change


      self.pm.daemon_spawn()

  def test_daemon_spawn_child(self, *args):
    with self.mock_daemonize_context(chk_post_child=True) as mock_fork:
      mock_fork.return_value = 0        // Simulate the child.
      self.pm.daemon_spawn()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 497ebbb661f903e2aaf8a60f314982323101bf93
Time: 2015-07-30
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/pantsd/test_process_manager.py
Class Name: TestProcessManager
Method Name: test_daemon_spawn_child


Project Name: pantsbuild/pants
Commit Name: 497ebbb661f903e2aaf8a60f314982323101bf93
Time: 2015-07-30
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/pantsd/test_process_manager.py
Class Name: TestProcessManager
Method Name: test_daemon_spawn_parent


Project Name: pantsbuild/pants
Commit Name: 497ebbb661f903e2aaf8a60f314982323101bf93
Time: 2015-07-30
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/pantsd/test_process_manager.py
Class Name: TestProcessManager
Method Name: test_daemonize_child_parent


Project Name: pantsbuild/pants
Commit Name: 497ebbb661f903e2aaf8a60f314982323101bf93
Time: 2015-07-30
Author: kwilson@twopensource.com
File Name: tests/python/pants_test/pantsd/test_process_manager.py
Class Name: TestProcessManager
Method Name: test_daemonize_child