Home
last modified time | relevance | path

Searched refs:_OptionError (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Lib/
Dwarnings.py200 class _OptionError(Exception): class
209 except _OptionError as msg:
216 raise _OptionError("too many fields (max 5): %r" % (arg,))
235 raise _OptionError("invalid lineno %r" % (lineno,)) from None
248 raise _OptionError("invalid action: %r" % (action,))
262 raise _OptionError("invalid module name: %r" % (module,)) from None
266 raise _OptionError("unknown warning category: %r" % (category,)) from None
268 raise _OptionError("invalid warning category: %r" % (category,))
/third_party/python/Lib/test/test_warnings/
D__init__.py573 self.assertRaises(self.module._OptionError,
575 self.assertRaises(self.module._OptionError,
577 self.assertRaises(self.module._OptionError,
579 with self.assertRaises(self.module._OptionError):
581 with self.assertRaises(self.module._OptionError):
583 with self.assertRaises(self.module._OptionError):
585 with self.assertRaisesRegex(self.module._OptionError, 'Wärning'):
593 with self.assertRaises(self.module._OptionError):
595 with self.assertRaises(self.module._OptionError):