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

Method fail

Lib/unittest/case.py:746–748  ·  view source on GitHub ↗

Fail immediately, with the given message.

(self, msg=None)

Source from the content-addressed store, hash-verified

744 raise SkipTest(reason)
745
746 def fail(self, msg=None):
747 """Fail immediately, with the given message."""
748 raise self.failureException(msg)
749
750 def assertFalse(self, expr, msg=None):
751 """Check that the expression is false."""

Callers 15

assertSequenceEqualMethod · 0.95
assertSetEqualMethod · 0.95
assertInMethod · 0.95
assertNotInMethod · 0.95
assertIsMethod · 0.95
assertIsNotMethod · 0.95
assertDictEqualMethod · 0.95
assertCountEqualMethod · 0.95
assertMultiLineEqualMethod · 0.95
assertLessMethod · 0.95
assertLessEqualMethod · 0.95
assertGreaterMethod · 0.95

Calls

no outgoing calls

Tested by 7

test_unpack_iterMethod · 0.76
test_closeMethod · 0.76
test_withMethod · 0.76
test_printer_buttonsMethod · 0.36