(self)
| 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() |