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

Method remove_loop

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

Source from the content-addressed store, hash-verified

688 def test_race(self):
689 # Issue #14632 refers.
690 def remove_loop(fname, tries):
691 for _ in range(tries):
692 try:
693 os.unlink(fname)
694 self.deletion_time = time.time()
695 except OSError:
696 pass
697 time.sleep(0.004 * random.randint(0, 4))
698
699 del_count = 500
700 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