Searched refs:_OptionError (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/ |
D | warnings.py | 120 class _OptionError(Exception): class 129 except _OptionError, msg: 137 raise _OptionError("too many fields (max 5): %r" % (arg,)) 154 raise _OptionError("invalid lineno %r" % (lineno,)) 167 raise _OptionError("invalid action: %r" % (action,)) 178 raise _OptionError("unknown warning category: %r" % (category,)) 186 raise _OptionError("invalid module name: %r" % (module,)) 190 raise _OptionError("unknown warning category: %r" % (category,)) 192 raise _OptionError("invalid warning category: %r" % (category,))
|
/external/python/cpython3/Lib/ |
D | warnings.py | 200 class _OptionError(Exception): class 209 except _OptionError as msg: 217 raise _OptionError("too many fields (max 5): %r" % (arg,)) 234 raise _OptionError("invalid lineno %r" % (lineno,)) from None 247 raise _OptionError("invalid action: %r" % (action,)) 258 raise _OptionError("unknown warning category: %r" % (category,)) from None 266 raise _OptionError("invalid module name: %r" % (module,)) from None 270 raise _OptionError("unknown warning category: %r" % (category,)) from None 272 raise _OptionError("invalid warning category: %r" % (category,))
|
/external/python/cpython2/Lib/test/ |
D | test_warnings.py | 410 self.assertRaises(self.module._OptionError, 412 self.assertRaises(self.module._OptionError, 414 self.assertRaises(self.module._OptionError,
|
/external/python/cpython3/Lib/test/test_warnings/ |
D | __init__.py | 626 self.assertRaises(self.module._OptionError, 628 self.assertRaises(self.module._OptionError, 630 self.assertRaises(self.module._OptionError,
|