MCPcopy Create free account
hub / github.com/celery/celery / test_create_forking_enable_fork

Method test_create_forking_enable_fork

t/unit/worker/test_components.py:85–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83
84 @t.skip.if_win32
85 def test_create_forking_enable_fork(self):
86 w = Mock()
87 w.use_eventloop = w.pool_putlocks = w.pool_cls.uses_semaphore = True
88 w.pool_start_method = 'fork'
89 comp = Pool(w)
90 comp.instantiate = Mock()
91
92 comp.create(w)
93
94 assert comp.instantiate.call_args[1]['forking_enable'] is True
95
96 def test_create_forking_enable_spawn(self):
97 w = Mock()

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
PoolClass · 0.90

Tested by

no test coverage detected