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

Method get_error

Lib/test/test_configparser.py:583–590  ·  view source on GitHub ↗
(self, cf, exc, section, option)

Source from the content-addressed store, hash-verified

581 self.assertEqual(e.args, ("bar", "foo"))
582
583 def get_error(self, cf, exc, section, option):
584 try:
585 cf.get(section, option)
586 except exc as e:
587 return e
588 else:
589 self.fail("expected exception type %s.%s"
590 % (exc.__module__, exc.__qualname__))
591
592 def test_boolean(self):
593 cf = self.fromstring(

Callers 3

test_query_errorsMethod · 0.95
test_interpolationMethod · 0.80

Calls 2

getMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected