MCPcopy Create free account
hub / github.com/cdgriffith/Box / FalseBoxList

Class FalseBoxList

test/test_comments.py:468–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466
467def test_inplace_repetition_keeps_comments_on_false_valued_subclass():
468 class FalseBoxList(BoxList):
469 def __bool__(self):
470 return False
471
472 values = FalseBoxList(["old"])
473 values.set_comment(0, "explanation")

Calls

no outgoing calls