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

Class ExplodingBool

Lib/test/test_struct.py:506–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504
505 def test_bool(self):
506 class ExplodingBool(object):
507 def __bool__(self):
508 raise OSError
509 for prefix in tuple("<>!=")+('',):
510 false = (), [], [], '', 0
511 true = [1], 'test', 5, -1, 0xffffffff+1, 0xffffffff/2

Callers 1

test_boolMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_boolMethod · 0.56