(self)
| 46 | self.cond.notify() |
| 47 | |
| 48 | def run(self): |
| 49 | while not self.stopped or self.ops: |
| 50 | if not self.ops: |
| 51 | with self.cond: |
| 52 | _cond_wait(self.cond, 10) |
| 53 | if self.ops: |
| 54 | try: |
| 55 | work = self.ops.pop(0) |
| 56 | work() |
| 57 | except Exception as exc: |
| 58 | self.exc = exc |
| 59 | self.stop() |
| 60 | |
| 61 | |
| 62 | class SpecTestCreator: |
no test coverage detected