MCPcopy Index your code
hub / github.com/python/cpython / test_free_threading

Method test_free_threading

Lib/test/test_readline.py:439–453  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

437 @threading_helper.reap_threads
438 @threading_helper.requires_working_threading()
439 def test_free_threading(self):
440 def completer_delims(b):
441 b.wait()
442 for _ in range(100):
443 readline.get_completer_delims()
444 readline.set_completer_delims(' \t\n`@#%^&*()=+[{]}\\|;:\'",<>?&#x27;)
445 readline.set_completer_delims(' \t\n`@#%^&*()=+[{]}\\|;:\'",<>?&#x27;)
446 readline.get_completer_delims()
447
448 count = 40
449 barrier = threading.Barrier(count)
450 threads = [threading.Thread(target=completer_delims, args=(barrier,)) for _ in range(count)]
451
452 with threading_helper.start_threads(threads):
453 pass
454
455
456if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

BarrierMethod · 0.80

Tested by

no test coverage detected