()
| 125 | errors = [] |
| 126 | |
| 127 | def cb(): |
| 128 | # Sleep here to make it more likely for another thread |
| 129 | # to call their callback at the same time. |
| 130 | time.sleep(1e-3) |
| 131 | |
| 132 | # Check reentrancy |
| 133 | r = self.module.t(lambda: 123) |
| 134 | assert r == 123 |
| 135 | |
| 136 | return 42 |
| 137 | |
| 138 | def runner(name): |
| 139 | try: |