(self)
| 49 | class test_Pool: |
| 50 | |
| 51 | def test_close_terminate(self): |
| 52 | w = Mock() |
| 53 | comp = Pool(w) |
| 54 | pool = w.pool = Mock() |
| 55 | comp.close(w) |
| 56 | pool.close.assert_called_with() |
| 57 | comp.terminate(w) |
| 58 | pool.terminate.assert_called_with() |
| 59 | |
| 60 | w.pool = None |
| 61 | comp.close(w) |
| 62 | comp.terminate(w) |
| 63 | |
| 64 | @t.skip.if_win32 |
| 65 | def test_create_when_eventloop(self): |