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

Method remove_loop

Lib/test/test_logging.py:703–710  ·  view source on GitHub ↗
(fname, tries)

Source from the content-addressed store, hash-verified

701 def test_race(self):
702 # Issue #14632 refers.
703 def remove_loop(fname, tries):
704 for _ in range(tries):
705 try:
706 os.unlink(fname)
707 self.deletion_time = time.time()
708 except OSError:
709 pass
710 time.sleep(0.004 * random.randint(0, 4))
711
712 del_count = 500
713 log_count = 500

Callers

nothing calls this directly

Calls 4

randintMethod · 0.80
unlinkMethod · 0.45
timeMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected