(self)
| 3601 | # Test make_msgid uniqueness, even with multiple threads |
| 3602 | class MsgidsThread(Thread): |
| 3603 | def run(self): |
| 3604 | # generate msgids for 3 seconds |
| 3605 | self.msgids = [] |
| 3606 | append = self.msgids.append |
| 3607 | make_msgid = utils.make_msgid |
| 3608 | clock = time.monotonic |
| 3609 | tfin = clock() + 3.0 |
| 3610 | while clock() < tfin: |
| 3611 | append(make_msgid(domain='testdomain-string')) |
| 3612 | |
| 3613 | threads = [MsgidsThread() for i in range(5)] |
| 3614 | with threading_helper.start_threads(threads): |
nothing calls this directly
no test coverage detected