MCPcopy Create free account
hub / github.com/python/cpython / test_popitem_and_flush_twice

Method test_popitem_and_flush_twice

Lib/test/test_mailbox.py:507–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

505 self._test_flush_or_close(self._box.flush, True)
506
507 def test_popitem_and_flush_twice(self):
508 # See #15036.
509 self._box.add(self._template % 0)
510 self._box.add(self._template % 1)
511 self._box.flush()
512
513 self._box.popitem()
514 self._box.flush()
515 self._box.popitem()
516 self._box.flush()
517
518 def test_lock_unlock(self):
519 # Lock and unlock the mailbox

Callers

nothing calls this directly

Calls 3

addMethod · 0.45
flushMethod · 0.45
popitemMethod · 0.45

Tested by

no test coverage detected