(self)
| 107 | |
| 108 | @t.skip.if_win32 |
| 109 | def test_create_spawn_with_async_pool(self): |
| 110 | w = Mock() |
| 111 | w.use_eventloop = w.pool_putlocks = w.pool_cls.uses_semaphore = True |
| 112 | w.pool_start_method = 'spawn' |
| 113 | comp = Pool(w) |
| 114 | comp.instantiate = Mock() |
| 115 | |
| 116 | comp.create(w) |
| 117 | |
| 118 | assert comp.instantiate.call_args[1]['forking_enable'] is False |
| 119 | |
| 120 | |
| 121 | class test_Beat: |