MCPcopy Create free account
hub / github.com/microsoft/debugpy / expect_no_unobserved

Method expect_no_unobserved

tests/timeline.py:418–435  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

416 return tuple(occ for occ in self if occ == expectation)
417
418 def expect_no_unobserved(self):
419 if not self:
420 return
421
422 unobserved = [
423 occ
424 for occ in self
425 if not occ.observed
426 and all(exp != occ for exp in self.timeline.ignore_unobserved)
427 ]
428 if not unobserved:
429 return
430
431 raise log.error(
432 "Unobserved occurrences detected:\n\n{0}\n\nignoring unobserved:\n\n{1}",
433 "\n\n".join(repr(occ) for occ in unobserved),
434 "\n\n".join(repr(exp) for exp in self.timeline.ignore_unobserved),
435 )
436
437
438class Expectation(object):

Callers 2

closeMethod · 0.80
proceedMethod · 0.80

Calls 4

allFunction · 0.85
reprFunction · 0.85
errorMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected