Lines Matching refs:_testcapi
165 import _testcapi
167 _testcapi.raise_exception(BadException, 1)
177 import _testcapi
179 _testcapi.raise_exception(BadException, 0)
614 import _testcapi
618 self.assertRaises(SystemError, _testcapi.make_exception_with_doc,
622 error1 = _testcapi.make_exception_with_doc("_testcapi.error1")
628 error2 = _testcapi.make_exception_with_doc("_testcapi.error2", doc2)
632 error3 = _testcapi.make_exception_with_doc("_testcapi.error3",
639 error4 = _testcapi.make_exception_with_doc("_testcapi.error4", doc4,
646 error5 = _testcapi.make_exception_with_doc("_testcapi.error5", "",