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

Method parse_error

Lib/test/test_configparser.py:557–564  ·  view source on GitHub ↗
(self, cf, exc, src)

Source from the content-addressed store, hash-verified

555 self.assertEqual(e.args, expected)
556
557 def parse_error(self, cf, exc, src):
558 if hasattr(src, 'readline'):
559 sio = src
560 else:
561 sio = io.StringIO(src)
562 with self.assertRaises(exc) as cm:
563 cf.read_file(sio)
564 return cm.exception
565
566 def test_query_errors(self):
567 cf = self.newconfig()

Callers 1

test_parse_errorsMethod · 0.95

Calls 2

assertRaisesMethod · 0.45
read_fileMethod · 0.45

Tested by

no test coverage detected