Lines Matching refs:RuntimeError
64 raise RuntimeError("Context is not reentrant")
165 raise RuntimeError("Enter threw")
174 self.assertRaises(RuntimeError, shouldThrow)
182 raise RuntimeError(42)
186 self.assertRaises(RuntimeError, shouldThrow)
189 TEST_EXCEPTION = RuntimeError("test exception")
360 self.assertRaises(RuntimeError, shouldThrow)
385 self.assertRaises(RuntimeError, shouldThrow)
403 self.assertRaises(RuntimeError, shouldThrow)
421 self.assertRaises(RuntimeError, shouldThrow)
442 self.assertRaises(RuntimeError, shouldThrow)
593 raise RuntimeError
595 except RuntimeError:
598 self.fail("Didn't raise RuntimeError")
686 def __init__(self): raise RuntimeError()
689 def __enter__(self): raise RuntimeError()
694 def __exit__(self, *exc_info): raise RuntimeError()
716 except RuntimeError:
719 self.fail('RuntimeError not reraised')