MCPcopy Index your code
hub / github.com/python/cpython / falseAsBool

Method falseAsBool

Lib/test/test_with.py:597–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

595 trueAsBool()
596
597 def falseAsBool():
598 with cm(lambda: False):
599 self.fail("Should raise")
600 self.assertRaises(AssertionError, falseAsBool)
601
602 def failAsBool():

Callers

nothing calls this directly

Calls 2

cmClass · 0.85
failMethod · 0.45

Tested by

no test coverage detected