File tree Expand file tree Collapse file tree 7 files changed +2
-49
lines changed
Expand file tree Collapse file tree 7 files changed +2
-49
lines changed Original file line number Diff line number Diff line change @@ -804,16 +804,10 @@ def to_digits(num):
804804 (negative , digits ))
805805
806806 def test_bug_143050 (self ):
807- _testinternalcapi = import_helper .import_module ('_testinternalcapi' )
808- _pylong_is_small_int = _testinternalcapi ._pylong_is_small_int
809-
810- self .assertRaises (TypeError , _pylong_is_small_int , 1j )
811-
812807 with support .adjust_int_max_str_digits (0 ):
813- self .assertTrue (_testinternalcapi ._pylong_is_small_int (0 ))
814808 a = int ('-' + '0' * 7000 , 10 )
815809 del a
816- self . assertTrue ( _testinternalcapi . _pylong_is_small_int ( 0 ) )
810+ _testcapi . test_immortal_small_ints ( )
817811
818812
819813if __name__ == "__main__" :
Original file line number Diff line number Diff line change 174174@MODULE_XXSUBTYPE_TRUE@xxsubtype xxsubtype.c
175175@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
176176@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
177- @MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c _testinternalcapi/test_lock.c _testinternalcapi/pytime.c _testinternalcapi/set.c _testinternalcapi/test_critical_sections.c _testinternalcapi/complex.c _testinternalcapi/interpreter.c _testinternalcapi/tuple.c _testinternalcapi/long.c
177+ @MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c _testinternalcapi/test_lock.c _testinternalcapi/pytime.c _testinternalcapi/set.c _testinternalcapi/test_critical_sections.c _testinternalcapi/complex.c _testinternalcapi/interpreter.c _testinternalcapi/tuple.c
178178@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c _testcapi/vectorcall.c _testcapi/heaptype.c _testcapi/abstract.c _testcapi/unicode.c _testcapi/dict.c _testcapi/set.c _testcapi/list.c _testcapi/tuple.c _testcapi/getargs.c _testcapi/datetime.c _testcapi/docstring.c _testcapi/mem.c _testcapi/watchers.c _testcapi/long.c _testcapi/float.c _testcapi/complex.c _testcapi/numbers.c _testcapi/structmember.c _testcapi/exceptions.c _testcapi/code.c _testcapi/buffer.c _testcapi/pyatomic.c _testcapi/run.c _testcapi/file.c _testcapi/codec.c _testcapi/immortal.c _testcapi/gc.c _testcapi/hash.c _testcapi/time.c _testcapi/bytes.c _testcapi/object.c _testcapi/modsupport.c _testcapi/monitoring.c _testcapi/config.c _testcapi/import.c _testcapi/frame.c _testcapi/type.c _testcapi/function.c _testcapi/module.c
179179@MODULE__TESTLIMITEDCAPI_TRUE@_testlimitedcapi _testlimitedcapi.c _testlimitedcapi/abstract.c _testlimitedcapi/bytearray.c _testlimitedcapi/bytes.c _testlimitedcapi/codec.c _testlimitedcapi/complex.c _testlimitedcapi/dict.c _testlimitedcapi/eval.c _testlimitedcapi/float.c _testlimitedcapi/heaptype_relative.c _testlimitedcapi/import.c _testlimitedcapi/list.c _testlimitedcapi/long.c _testlimitedcapi/object.c _testlimitedcapi/pyos.c _testlimitedcapi/set.c _testlimitedcapi/sys.c _testlimitedcapi/threadstate.c _testlimitedcapi/tuple.c _testlimitedcapi/unicode.c _testlimitedcapi/vectorcall_limited.c _testlimitedcapi/version.c _testlimitedcapi/file.c
180180@MODULE__TESTCLINIC_TRUE@_testclinic _testclinic.c
Original file line number Diff line number Diff line change @@ -2990,9 +2990,6 @@ module_exec(PyObject *module)
29902990 if (_PyTestInternalCapi_Init_Tuple (module ) < 0 ) {
29912991 return 1 ;
29922992 }
2993- if (_PyTestInternalCapi_Init_Long (module ) < 0 ) {
2994- return 1 ;
2995- }
29962993
29972994 Py_ssize_t sizeof_gc_head = 0 ;
29982995#ifndef Py_GIL_DISABLED
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ int _PyTestInternalCapi_Init_Set(PyObject *module);
1616int _PyTestInternalCapi_Init_Complex (PyObject * module );
1717int _PyTestInternalCapi_Init_CriticalSection (PyObject * module );
1818int _PyTestInternalCapi_Init_Tuple (PyObject * module );
19- int _PyTestInternalCapi_Init_Long (PyObject * module );
2019
2120#endif // Py_TESTINTERNALCAPI_PARTS_H
Original file line number Diff line number Diff line change 101101 <ClCompile Include =" ..\Modules\_testinternalcapi\complex.c" />
102102 <ClCompile Include =" ..\Modules\_testinternalcapi\interpreter.c" />
103103 <ClCompile Include =" ..\Modules\_testinternalcapi\tuple.c" />
104- <ClCompile Include =" ..\Modules\_testinternalcapi\long.c" />
105104 </ItemGroup >
106105 <ItemGroup >
107106 <ResourceCompile Include =" ..\PC\python_nt.rc" />
Original file line number Diff line number Diff line change 3030 <ClCompile Include =" ..\Modules\_testinternalcapi\tuple.c" >
3131 <Filter >Source Files</Filter >
3232 </ClCompile >
33- <ClCompile Include =" ..\Modules\_testinternalcapi\long.c" >
34- <Filter >Source Files</Filter >
35- </ClCompile >
3633 </ItemGroup >
3734 <ItemGroup >
3835 <ResourceCompile Include =" ..\PC\python_nt.rc" >
You can’t perform that action at this time.
0 commit comments