Lines Matching refs:_testcapi
273 import _testcapi
275 _testcapi.raise_exception(BadException, 1)
285 import _testcapi
287 _testcapi.raise_exception(BadException, 0)
299 import _testcapi
300 self.assertRaises(SystemError, _testcapi.raise_exception,
1105 from _testcapi import raise_memoryerror
1121 import _testcapi
1125 self.assertRaises(SystemError, _testcapi.make_exception_with_doc,
1129 error1 = _testcapi.make_exception_with_doc("_testcapi.error1")
1135 error2 = _testcapi.make_exception_with_doc("_testcapi.error2", doc2)
1139 error3 = _testcapi.make_exception_with_doc("_testcapi.error3",
1146 error4 = _testcapi.make_exception_with_doc("_testcapi.error4", doc4,
1153 error5 = _testcapi.make_exception_with_doc("_testcapi.error5", "",
1163 from _testcapi import raise_memoryerror