MCPcopy Index your code
hub / github.com/RustPython/RustPython / run

Method run

Lib/test/test_email/test_email.py:3603–3611  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

make_msgidFunction · 0.85

Tested by

no test coverage detected