/external/python/cpython3/Lib/test/ |
D | test_capi.py | 27 _testcapi = support.import_module('_testcapi') variable 41 id = _testcapi.instancemethod(id) 42 testfunction = _testcapi.instancemethod(testfunction) 76 self.assertRaises(ValueError, _testcapi.make_memoryview_from_NULL_pointer) 86 orig_exc_info = _testcapi.set_exc_info(new_exc.__class__, new_exc, None) 88 new_exc_info = _testcapi.set_exc_info(*orig_exc_info) 132 self.assertEqual(_testcapi.no_docstring.__doc__, None) 133 self.assertEqual(_testcapi.no_docstring.__text_signature__, None) 135 self.assertEqual(_testcapi.docstring_empty.__doc__, None) 136 self.assertEqual(_testcapi.docstring_empty.__text_signature__, None) [all …]
|
D | test_call.py | 4 import _testcapi 6 _testcapi = None variable 185 self.obj = self.expected_self = _testcapi 316 self.obj = self.expected_self = _testcapi.MethInstance() 323 self.obj = self.expected_self = _testcapi.MethClass 330 self.obj = _testcapi.MethClass() 331 self.expected_self = _testcapi.MethClass 338 self.obj = _testcapi.MethStatic() 413 _instance = _testcapi.MethInstance() 415 (_testcapi, _testcapi), # module-level function [all …]
|
D | test_getargs2.py | 7 _testcapi = support.import_module('_testcapi') variable 8 from _testcapi import getargs_keywords, getargs_keyword_only 43 from _testcapi import UCHAR_MAX, USHRT_MAX, UINT_MAX, ULONG_MAX, INT_MAX, \ 155 from _testcapi import getargs_b 181 from _testcapi import getargs_B 207 from _testcapi import getargs_H 234 from _testcapi import getargs_I 261 from _testcapi import getargs_k 287 from _testcapi import getargs_h 313 from _testcapi import getargs_i [all …]
|
D | test_time.py | 13 import _testcapi 15 _testcapi = None variable 732 @unittest.skipIf(_testcapi is None, 'need the _testcapi module') 740 from _testcapi import SIZEOF_TIME_T 785 for seconds in (_testcapi.INT_MIN, _testcapi.INT_MAX): 868 from _testcapi import PyTime_FromSeconds 872 return (_testcapi.INT_MIN <= secs <= _testcapi.INT_MAX) 884 from _testcapi import PyTime_FromSecondsObject 900 from _testcapi import PyTime_AsSecondsDouble 927 from _testcapi import PyTime_AsTimeval [all …]
|
D | test_marshal.py | 11 import _testcapi 13 _testcapi = None variable 521 @unittest.skipUnless(_testcapi, 'requires _testcapi') 526 _testcapi.pymarshal_write_long_to_file(0x12345678, support.TESTFN, v) 535 _testcapi.pymarshal_write_object_to_file(obj, support.TESTFN, v) 544 r, p = _testcapi.pymarshal_read_short_from_file(support.TESTFN) 552 _testcapi.pymarshal_read_short_from_file(support.TESTFN) 558 r, p = _testcapi.pymarshal_read_long_from_file(support.TESTFN) 566 _testcapi.pymarshal_read_long_from_file(support.TESTFN) 575 r, p = _testcapi.pymarshal_read_last_object_from_file(support.TESTFN) [all …]
|
D | test_dict_version.py | 9 _testcapi = support.import_module('_testcapi') variable 20 version = _testcapi.dict_get_version(mydict) 30 version1 = _testcapi.dict_get_version(mydict) 35 version2 = _testcapi.dict_get_version(mydict)
|
D | test_exceptions.py | 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") [all …]
|
D | test_signal.py | 14 import _testcapi 16 _testcapi = None variable 224 @unittest.skipIf(_testcapi is None, 'need _testcapi') 263 @unittest.skipIf(_testcapi is None, 'need _testcapi') 407 @unittest.skipIf(_testcapi is None, 'need _testcapi') 443 @unittest.skipIf(_testcapi is None, 'need _testcapi') 486 @unittest.skipIf(_testcapi is None, 'need _testcapi')
|
D | test_fcntl.py | 113 from _testcapi import INT_MAX, INT_MIN 180 import _testcapi 181 self.assertRaises(OverflowError, fcntl.flock, _testcapi.INT_MAX+1,
|
D | test_faulthandler.py | 16 import _testcapi 18 _testcapi = None variable 201 @unittest.skipIf(_testcapi is None, 'need _testcapi') 215 @unittest.skipIf(_testcapi is None, 'need _testcapi')
|
D | test_generators.py | 12 import _testcapi 14 _testcapi = None variable 20 @unittest.skipUnless(_testcapi is not None and 21 hasattr(_testcapi, "raise_SIGINT_then_send_None"), 40 _testcapi.raise_SIGINT_then_send_None(gen)
|
D | test_tracemalloc.py | 12 import _testcapi 14 _testcapi = None variable 949 @unittest.skipIf(_testcapi is None, 'need _testcapi') 957 @unittest.skipIf(_testcapi is None, 'need _testcapi') 977 frames = _testcapi.tracemalloc_get_traceback(self.domain, self.ptr) 985 _testcapi.tracemalloc_track(self.domain, self.ptr, self.size, 990 _testcapi.tracemalloc_untrack(self.domain, self.ptr)
|
D | pythoninfo.py | 582 import _testcapi 586 call_func(info_add, 'pymem.allocator', _testcapi, 'pymem_getallocatorsname') 587 copy_attr(info_add, 'pymem.with_pymalloc', _testcapi, 'WITH_PYMALLOC')
|
D | test_code.py | 167 import _testcapi 168 co = _testcapi.code_newempty("filename", "funcname", 15)
|
/external/python/cpython2/Lib/test/ |
D | test_capi.py | 18 _testcapi = support.import_module('_testcapi') variable 23 _testcapi.test_buildvalue_N() 41 if _testcapi._pending_threadfunc(callback): 108 self.assertEqual(_testcapi.get_indices(slice(10L, 20, 1), 100), (0, 10, 20, 1)) 109 self.assertEqual(_testcapi.get_indices(slice(10.1, 20, 1), 100), None) 110 self.assertEqual(_testcapi.get_indices(slice(10, 20L, 1), 100), (0, 10, 20, 1)) 111 self.assertEqual(_testcapi.get_indices(slice(10, 20.1, 1), 100), None) 113 self.assertEqual(_testcapi.get_indices(slice(10L, 20, 1L), 100), (0, 10, 20, 1)) 114 self.assertEqual(_testcapi.get_indices(slice(10.1, 20, 1L), 100), None) 115 self.assertEqual(_testcapi.get_indices(slice(10, 20L, 1L), 100), (0, 10, 20, 1)) [all …]
|
D | test_getargs2.py | 7 _testcapi = test_support.import_module('_testcapi') variable 8 from _testcapi import getargs_keywords 46 from _testcapi import UCHAR_MAX, USHRT_MAX, UINT_MAX, ULONG_MAX, INT_MAX, \ 55 from _testcapi import getargs_L, getargs_K 131 from _testcapi import getargs_b 147 from _testcapi import getargs_B 164 from _testcapi import getargs_H 181 from _testcapi import getargs_I 198 from _testcapi import getargs_k 217 from _testcapi import getargs_h [all …]
|
D | test_exceptions.py | 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, [all …]
|
D | test_marshal.py | 10 import _testcapi 12 _testcapi = None variable 342 @unittest.skipUnless(_testcapi, 'requires _testcapi') 347 _testcapi.pymarshal_write_long_to_file(0x12345678, test_support.TESTFN, v) 356 _testcapi.pymarshal_write_object_to_file(obj, test_support.TESTFN, v) 365 r, p = _testcapi.pymarshal_read_short_from_file(test_support.TESTFN) 373 r, p = _testcapi.pymarshal_read_long_from_file(test_support.TESTFN) 384 r, p = _testcapi.pymarshal_read_last_object_from_file(test_support.TESTFN) 394 r, p = _testcapi.pymarshal_read_object_from_file(test_support.TESTFN)
|
D | test_code.py | 109 import _testcapi 110 co = _testcapi.code_newempty("filename", "funcname", 15)
|
D | pythoninfo.py | 454 import _testcapi 458 call_func(info_add, 'pymem.allocator', _testcapi, 'pymem_getallocatorsname') 459 copy_attr(info_add, 'pymem.with_pymalloc', _testcapi, 'WITH_PYMALLOC')
|
D | test_threading.py | 18 import _testcapi 20 _testcapi = None variable 728 @unittest.skipIf(_testcapi is None, "need _testcapi module") 757 _testcapi.call_in_temporary_c_thread(callback)
|
/external/python/cpython2/PC/VC6/ |
D | _testcapi.dsp | 1 # Microsoft Developer Studio Project File - Name="_testcapi" - Package Owner=<4> 7 CFG=_testcapi - Win32 Debug 11 !MESSAGE NMAKE /f "_testcapi.mak". 16 !MESSAGE NMAKE /f "_testcapi.mak" CFG="_testcapi - Win32 Debug" 20 !MESSAGE "_testcapi - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") 21 !MESSAGE "_testcapi - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") 26 # PROP Scc_ProjName "_testcapi" 32 !IF "$(CFG)" == "_testcapi - Win32 Release" 42 # PROP Intermediate_Dir "x86-temp-release\_testcapi" 57 …id.lib odbc32.lib odbccp32.lib /nologo /base:"0x1e1F0000" /dll /machine:I386 /out:"./_testcapi.pyd" [all …]
|
D | pcbuild.dsw | 138 Project: "_testcapi"=".\_testcapi.dsp" - Package Owner=<4>
|
/external/python/cpython2/Lib/test/support/ |
D | __init__.py | 1270 import _testcapi 1275 size += _testcapi.SIZEOF_PYGC_HEAD 1979 import _testcapi 1980 _testcapi.CrtSetReportMode 1986 for report_type in [_testcapi.CRT_WARN, 1987 _testcapi.CRT_ERROR, 1988 _testcapi.CRT_ASSERT]: 1989 old_mode = _testcapi.CrtSetReportMode(report_type, 1990 _testcapi.CRTDBG_MODE_FILE) 1991 old_file = _testcapi.CrtSetReportFile(report_type, [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_structures.py | 5 import _testcapi 207 "_pack_": _testcapi.INT_MAX + 1} 210 "_pack_": _testcapi.UINT_MAX + 2}
|