(self)
| 28 | self._exceptions.append(e) |
| 29 | |
| 30 | def testMultiThreaded(self): |
| 31 | threads = [] |
| 32 | self._exceptions = [] |
| 33 | for _ in range(8): |
| 34 | thread = Thread(target=self.use_my_context) |
| 35 | thread.start() |
| 36 | threads.append(thread) |
| 37 | for t in threads: |
| 38 | t.join() |
| 39 | for e in self._exceptions: |
| 40 | raise e |
| 41 | |
| 42 | @MyContext() |
| 43 | def testDecorator(self): |