(self)
| 1940 | self.assertIs(cm.exception.__suppress_context__, True) |
| 1941 | |
| 1942 | def test_missing_options(self): |
| 1943 | parser = configparser.ConfigParser() |
| 1944 | parser.read_string(""" |
| 1945 | [Paths] |
| 1946 | home_dir: /Users |
| 1947 | """) |
| 1948 | with self.assertRaises(configparser.NoSectionError) as cm: |
| 1949 | parser.options('test') |
| 1950 | self.assertIs(cm.exception.__suppress_context__, True) |
| 1951 | |
| 1952 | def test_missing_section(self): |
| 1953 | config = configparser.ConfigParser() |
nothing calls this directly
no test coverage detected