MCPcopy
hub / github.com/pytest-dev/pytest-xdist / waitonchange

Method waitonchange

src/xdist/looponfail.py:262–267  ·  view source on GitHub ↗
(self, checkinterval: float = 1.0)

Source from the content-addressed store, hash-verified

260 return not p.name.startswith(".") and p.exists()
261
262 def waitonchange(self, checkinterval: float = 1.0) -> None:
263 while 1:
264 changed = self.check()
265 if changed:
266 return
267 time.sleep(checkinterval)
268
269 def check(self, removepycfiles: bool = True) -> bool:
270 changed = False

Callers 2

looponfail_mainFunction · 0.95
test_waitonchangeMethod · 0.95

Calls 1

checkMethod · 0.95

Tested by 1

test_waitonchangeMethod · 0.76