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

Method test_missing_section

Lib/test/test_configparser.py:1952–1956  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1950 self.assertIs(cm.exception.__suppress_context__, True)
1951
1952 def test_missing_section(self):
1953 config = configparser.ConfigParser()
1954 with self.assertRaises(configparser.NoSectionError) as cm:
1955 config.set('Section1', 'an_int', '15')
1956 self.assertIs(cm.exception.__suppress_context__, True)
1957
1958 def test_remove_option(self):
1959 config = configparser.ConfigParser()

Callers

nothing calls this directly

Calls 3

setMethod · 0.95
assertRaisesMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected