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

Method test_remove_option

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

Source from the content-addressed store, hash-verified

1956 self.assertIs(cm.exception.__suppress_context__, True)
1957
1958 def test_remove_option(self):
1959 config = configparser.ConfigParser()
1960 with self.assertRaises(configparser.NoSectionError) as cm:
1961 config.remove_option('Section1', 'an_int')
1962 self.assertIs(cm.exception.__suppress_context__, True)
1963
1964
1965class ConvertersTestCase(BasicTestCase, unittest.TestCase):

Callers

nothing calls this directly

Calls 3

assertRaisesMethod · 0.45
remove_optionMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected