lib-python/3/test/test_ctypes::unmodified
== PyPy 3.12.13 (8ba7ab03fab8, Jul 08 2026, 04:20:17) [PyPy 7.3.24-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_275941æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 730268755
0:00:00 load avg: 0.49 Run 1 test sequentially in a single process
0:00:00 load avg: 0.49 [1/1] test_ctypes
test_anon (test.test_ctypes.test_anon.AnonTest.test_anon) ... ok
test_anon_nonmember (test.test_ctypes.test_anon.AnonTest.test_anon_nonmember) ... ok
test_anon_nonseq (test.test_ctypes.test_anon.AnonTest.test_anon_nonseq) ... ok
test_issue31490 (test.test_ctypes.test_anon.AnonTest.test_issue31490) ... skipped 'implementation detail specific to cpython'
test_nested (test.test_ctypes.test_anon.AnonTest.test_nested) ... ok
test (test.test_ctypes.test_array_in_pointer.Test.test) ... ok
test_2 (test.test_ctypes.test_array_in_pointer.Test.test_2) ... ok
test_bad_length (test.test_ctypes.test_arrays.ArrayTestCase.test_bad_length) ... ok
test_bad_subclass (test.test_ctypes.test_arrays.ArrayTestCase.test_bad_subclass) ... ok
test_bpo36504_signed_int_overflow (test.test_ctypes.test_arrays.ArrayTestCase.test_bpo36504_signed_int_overflow) ... ok
test_cache (test.test_ctypes.test_arrays.ArrayTestCase.test_cache) ... ok
test_classcache (test.test_ctypes.test_arrays.ArrayTestCase.test_classcache) ... ok
test_empty_element_array (test.test_ctypes.test_arrays.ArrayTestCase.test_empty_element_array) ... ok
test_empty_element_struct (test.test_ctypes.test_arrays.ArrayTestCase.test_empty_element_struct) ... ok
test_from_address (test.test_ctypes.test_arrays.ArrayTestCase.test_from_address) ... ok
test_from_addressW (test.test_ctypes.test_arrays.ArrayTestCase.test_from_addressW) ... ok
test_large_array (test.test_ctypes.test_arrays.ArrayTestCase.test_large_array) ... skipped 'not enough memory: 2.0G minimum needed'
test_numeric_arrays (test.test_ctypes.test_arrays.ArrayTestCase.test_numeric_arrays) ... ok
test_simple (test.test_ctypes.test_arrays.ArrayTestCase.test_simple) ... ok
test_step_overflow (test.test_ctypes.test_arrays.ArrayTestCase.test_step_overflow) ... ok
test_subclass (test.test_ctypes.test_arrays.ArrayTestCase.test_subclass) ... ok
test_zero_length (test.test_ctypes.test_arrays.ArrayTestCase.test_zero_length) ... ok
test_byval (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_byval) ... ok
test_callbacks (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_callbacks) ... ok
test_callbacks_2 (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_callbacks_2) ... ok
test_longlong_callbacks (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_longlong_callbacks) ... ok
test_pointers (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_pointers) ... ok
test_recursive_as_param (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_recursive_as_param) ... ok
test_shorts (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_shorts) ... ok
test_struct_return_2H (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_struct_return_2H) ... ok
test_struct_return_8H (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_struct_return_8H) ... ok
test_wchar_parm (test.test_ctypes.test_as_parameter.AsParamNestedWrapperTestCase.test_wchar_parm) ... ok
test_byval (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_byval) ... ok
test_callbacks (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_callbacks) ... ok
test_callbacks_2 (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_callbacks_2) ... ok
test_longlong_callbacks (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_longlong_callbacks) ... ok
test_pointers (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_pointers) ... ok
test_recursive_as_param (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_recursive_as_param) ... ok
test_shorts (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_shorts) ... ok
test_struct_return_2H (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_struct_return_2H) ... ok
test_struct_return_8H (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_struct_return_8H) ... ok
test_wchar_parm (test.test_ctypes.test_as_parameter.AsParamPropertyWrapperTestCase.test_wchar_parm) ... ok
test_byval (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_byval) ... ok
test_callbacks (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_callbacks) ... ok
test_callbacks_2 (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_callbacks_2) ... ok
test_longlong_callbacks (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_longlong_callbacks) ... ok
test_pointers (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_pointers) ... ok
test_recursive_as_param (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_recursive_as_param) ... ok
test_shorts (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_shorts) ... ok
test_struct_return_2H (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_struct_return_2H) ... ok
test_struct_return_8H (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_struct_return_8H) ... ok
test_wchar_parm (test.test_ctypes.test_as_parameter.AsParamWrapperTestCase.test_wchar_parm) ... ok
test_byval (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_byval) ... ok
test_callbacks (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_callbacks) ... ok
test_callbacks_2 (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_callbacks_2) ... ok
test_longlong_callbacks (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_longlong_callbacks) ... ok
test_pointers (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_pointers) ... ok
test_recursive_as_param (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_recursive_as_param) ... ok
test_shorts (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_shorts) ... ok
test_struct_return_2H (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_struct_return_2H) ... ok
test_struct_return_8H (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_struct_return_8H) ... ok
test_wchar_parm (test.test_ctypes.test_as_parameter.BasicWrapTestCase.test_wchar_parm) ... ok
test_anon_bitfields (test.test_ctypes.test_bitfields.BitFieldTest.test_anon_bitfields) ... ok
test_c_wchar (test.test_ctypes.test_bitfields.BitFieldTest.test_c_wchar) ... ok
test_longlong (test.test_ctypes.test_bitfields.BitFieldTest.test_longlong) ... ok
test_mixed_1 (test.test_ctypes.test_bitfields.BitFieldTest.test_mixed_1) ... ok
test_mixed_2 (test.test_ctypes.test_bitfields.BitFieldTest.test_mixed_2) ... ok
test_mixed_3 (test.test_ctypes.test_bitfields.BitFieldTest.test_mixed_3) ... ok
test_mixed_4 (test.test_ctypes.test_bitfields.BitFieldTest.test_mixed_4) ... ok
test_multi_bitfields_size (test.test_ctypes.test_bitfields.BitFieldTest.test_multi_bitfields_size) ... ok
test_nonint_types (test.test_ctypes.test_bitfields.BitFieldTest.test_nonint_types) ... ok
test_signed (test.test_ctypes.test_bitfields.BitFieldTest.test_signed) ... ok
test_single_bitfield_size (test.test_ctypes.test_bitfields.BitFieldTest.test_single_bitfield_size) ... ok
test_uint32 (test.test_ctypes.test_bitfields.BitFieldTest.test_uint32) ... ok
test_uint32_swap_big_endian (test.test_ctypes.test_bitfields.BitFieldTest.test_uint32_swap_big_endian) ... FAIL
test_uint32_swap_little_endian (test.test_ctypes.test_bitfields.BitFieldTest.test_uint32_swap_little_endian) ... ok
test_uint64 (test.test_ctypes.test_bitfields.BitFieldTest.test_uint64) ... ok
test_ulonglong (test.test_ctypes.test_bitfields.BitFieldTest.test_ulonglong) ... ok
test_unsigned (test.test_ctypes.test_bitfields.BitFieldTest.test_unsigned) ... ok
test_ints (test.test_ctypes.test_bitfields.C_Test.test_ints) ... ok
test_shorts (test.test_ctypes.test_bitfields.C_Test.test_shorts) ... ok
test_buffer (test.test_ctypes.test_buffers.StringBufferTestCase.test_buffer) ... ok
test_buffer_interface (test.test_ctypes.test_buffers.StringBufferTestCase.test_buffer_interface) ... ok
test_create_unicode_buffer_non_bmp (test.test_ctypes.test_buffers.StringBufferTestCase.test_create_unicode_buffer_non_bmp) ... ok
test_unicode_buffer (test.test_ctypes.test_buffers.StringBufferTestCase.test_unicode_buffer) ... ok
test_unicode_conversion (test.test_ctypes.test_buffers.StringBufferTestCase.test_unicode_conversion) ... ok
test_BSTR (test.test_ctypes.test_bytes.BytesTest.test_BSTR) ... skipped 'Windows-specific test'
test_c_char (test.test_ctypes.test_bytes.BytesTest.test_c_char) ... ok
test_c_char_p (test.test_ctypes.test_bytes.BytesTest.test_c_char_p) ... ok
test_c_wchar (test.test_ctypes.test_bytes.BytesTest.test_c_wchar) ... ok
test_c_wchar_p (test.test_ctypes.test_bytes.BytesTest.test_c_wchar_p) ... ok
test_struct (test.test_ctypes.test_bytes.BytesTest.test_struct) ... ok
test_struct_W (test.test_ctypes.test_bytes.BytesTest.test_struct_W) ... ok
test_build_struct_union_opposite_system_byteorder (test.test_ctypes.test_byteswap.Test.test_build_struct_union_opposite_system_byteorder) ... ok
test_endian_double (test.test_ctypes.test_byteswap.Test.test_endian_double) ... ok
test_endian_float (test.test_ctypes.test_byteswap.Test.test_endian_float) ... ok
test_endian_int (test.test_ctypes.test_byteswap.Test.test_endian_int) ... ok
test_endian_longlong (test.test_ctypes.test_byteswap.Test.test_endian_longlong) ... ok
test_endian_other (test.test_ctypes.test_byteswap.Test.test_endian_other) ... ok
test_endian_short (test.test_ctypes.test_byteswap.Test.test_endian_short) ... ok
test_slots (test.test_ctypes.test_byteswap.Test.test_slots) ... FAIL
test_struct_field_alignment (test.test_ctypes.test_byteswap.Test.test_struct_field_alignment) ... ok
test_struct_fields_unsupported_byte_order (test.test_ctypes.test_byteswap.Test.test_struct_fields_unsupported_byte_order) ... ok
test_struct_struct (test.test_ctypes.test_byteswap.Test.test_struct_struct) ... ok
test_unaligned_native_struct_fields (test.test_ctypes.test_byteswap.Test.test_unaligned_native_struct_fields) ... ok
test_unaligned_nonnative_struct_fields (test.test_ctypes.test_byteswap.Test.test_unaligned_nonnative_struct_fields) ... ok
test_union_fields_unsupported_byte_order (test.test_ctypes.test_byteswap.Test.test_union_fields_unsupported_byte_order) ... ok
test_union_struct (test.test_ctypes.test_byteswap.Test.test_union_struct) ... ok
test_creating_pointer_in_dunder_init_1 (test.test_ctypes.test_c_simple_type_meta.PyCSimpleTypeAsMetaclassTest.test_creating_pointer_in_dunder_init_1) ... ok
test_creating_pointer_in_dunder_init_2 (test.test_ctypes.test_c_simple_type_meta.PyCSimpleTypeAsMetaclassTest.test_creating_pointer_in_dunder_init_2) ... ok
test_creating_pointer_in_dunder_new_1 (test.test_ctypes.test_c_simple_type_meta.PyCSimpleTypeAsMetaclassTest.test_creating_pointer_in_dunder_new_1) ... ok
test_creating_pointer_in_dunder_new_2 (test.test_ctypes.test_c_simple_type_meta.PyCSimpleTypeAsMetaclassTest.test_creating_pointer_in_dunder_new_2) ... ok
test_byte (test.test_ctypes.test_callbacks.Callbacks.test_byte) ... ok
test_char (test.test_ctypes.test_callbacks.Callbacks.test_char) ... ok
test_double (test.test_ctypes.test_callbacks.Callbacks.test_double) ... ok
test_float (test.test_ctypes.test_callbacks.Callbacks.test_float) ... ok
test_i38748_stackCorruption (test.test_ctypes.test_callbacks.Callbacks.test_i38748_stackCorruption) ... skipped "'WINFUNCTYPE' is required"
test_int (test.test_ctypes.test_callbacks.Callbacks.test_int) ... ok
test_issue12483 (test.test_ctypes.test_callbacks.Callbacks.test_issue12483) ... ok
test_issue_7959 (test.test_ctypes.test_callbacks.Callbacks.test_issue_7959) ... ok
test_long (test.test_ctypes.test_callbacks.Callbacks.test_long) ... ok
test_longdouble (test.test_ctypes.test_callbacks.Callbacks.test_longdouble) ... ok
test_longlong (test.test_ctypes.test_callbacks.Callbacks.test_longlong) ... ok
test_pyobject (test.test_ctypes.test_callbacks.Callbacks.test_pyobject) ... ERROR
test_short (test.test_ctypes.test_callbacks.Callbacks.test_short) ... ok
test_ubyte (test.test_ctypes.test_callbacks.Callbacks.test_ubyte) ... ok
test_uint (test.test_ctypes.test_callbacks.Callbacks.test_uint) ... ok
test_ulong (test.test_ctypes.test_callbacks.Callbacks.test_ulong) ... ok
test_ulonglong (test.test_ctypes.test_callbacks.Callbacks.test_ulonglong) ... ok
test_unsupported_restype_1 (test.test_ctypes.test_callbacks.Callbacks.test_unsupported_restype_1) ... ok
test_unsupported_restype_2 (test.test_ctypes.test_callbacks.Callbacks.test_unsupported_restype_2) ... ok
test_ushort (test.test_ctypes.test_callbacks.Callbacks.test_ushort) ... ok
test_callback_large_struct (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_callback_large_struct) ... ok
test_callback_register_double (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_callback_register_double) ... ok
test_callback_register_int (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_callback_register_int) ... ok
test_callback_too_many_args (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_callback_too_many_args) ... ok
test_convert_result_error (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_convert_result_error) ... ok
test_integrate (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_integrate) ... ok
test_issue_8959_a (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_issue_8959_a) ... ok
test_issue_8959_b (test.test_ctypes.test_callbacks.SampleCallbacksTestCase.test_issue_8959_b) ... skipped "'WINFUNCTYPE' is required"
test_byte (test.test_ctypes.test_callbacks.StdcallCallbacks.test_byte) ... skipped "'WINFUNCTYPE' is required"
test_char (test.test_ctypes.test_callbacks.StdcallCallbacks.test_char) ... skipped "'WINFUNCTYPE' is required"
test_double (test.test_ctypes.test_callbacks.StdcallCallbacks.test_double) ... skipped "'WINFUNCTYPE' is required"
test_float (test.test_ctypes.test_callbacks.StdcallCallbacks.test_float) ... skipped "'WINFUNCTYPE' is required"
test_i38748_stackCorruption (test.test_ctypes.test_callbacks.StdcallCallbacks.test_i38748_stackCorruption) ... skipped "'WINFUNCTYPE' is required"
test_int (test.test_ctypes.test_callbacks.StdcallCallbacks.test_int) ... skipped "'WINFUNCTYPE' is required"
test_issue12483 (test.test_ctypes.test_callbacks.StdcallCallbacks.test_issue12483) ... skipped "'WINFUNCTYPE' is required"
test_issue_7959 (test.test_ctypes.test_callbacks.StdcallCallbacks.test_issue_7959) ... skipped "'WINFUNCTYPE' is required"
test_long (test.test_ctypes.test_callbacks.StdcallCallbacks.test_long) ... skipped "'WINFUNCTYPE' is required"
test_longdouble (test.test_ctypes.test_callbacks.StdcallCallbacks.test_longdouble) ... skipped "'WINFUNCTYPE' is required"
test_longlong (test.test_ctypes.test_callbacks.StdcallCallbacks.test_longlong) ... skipped "'WINFUNCTYPE' is required"
test_pyobject (test.test_ctypes.test_callbacks.StdcallCallbacks.test_pyobject) ... skipped "'WINFUNCTYPE' is required"
test_short (test.test_ctypes.test_callbacks.StdcallCallbacks.test_short) ... skipped "'WINFUNCTYPE' is required"
test_ubyte (test.test_ctypes.test_callbacks.StdcallCallbacks.test_ubyte) ... skipped "'WINFUNCTYPE' is required"
test_uint (test.test_ctypes.test_callbacks.StdcallCallbacks.test_uint) ... skipped "'WINFUNCTYPE' is required"
test_ulong (test.test_ctypes.test_callbacks.StdcallCallbacks.test_ulong) ... skipped "'WINFUNCTYPE' is required"
test_ulonglong (test.test_ctypes.test_callbacks.StdcallCallbacks.test_ulonglong) ... skipped "'WINFUNCTYPE' is required"
test_unsupported_restype_1 (test.test_ctypes.test_callbacks.StdcallCallbacks.test_unsupported_restype_1) ... skipped "'WINFUNCTYPE' is required"
test_unsupported_restype_2 (test.test_ctypes.test_callbacks.StdcallCallbacks.test_unsupported_restype_2) ... skipped "'WINFUNCTYPE' is required"
test_ushort (test.test_ctypes.test_callbacks.StdcallCallbacks.test_ushort) ... skipped "'WINFUNCTYPE' is required"
test_address2pointer (test.test_ctypes.test_cast.Test.test_address2pointer) ... ok
test_array2pointer (test.test_ctypes.test_cast.Test.test_array2pointer) ... ok
test_bad_type_arg (test.test_ctypes.test_cast.Test.test_bad_type_arg) ... FAIL
test_char_p (test.test_ctypes.test_cast.Test.test_char_p) ... ok
test_other (test.test_ctypes.test_cast.Test.test_other) ... ok
test_p2a_objects (test.test_ctypes.test_cast.Test.test_p2a_objects) ... ok
test_wchar_p (test.test_ctypes.test_cast.Test.test_wchar_p) ... ok
test_byte (test.test_ctypes.test_cfuncs.CFunctions.test_byte) ... ok
test_byte_plus (test.test_ctypes.test_cfuncs.CFunctions.test_byte_plus) ... ok
test_callwithresult (test.test_ctypes.test_cfuncs.CFunctions.test_callwithresult) ... ok
test_double (test.test_ctypes.test_cfuncs.CFunctions.test_double) ... ok
test_double_plus (test.test_ctypes.test_cfuncs.CFunctions.test_double_plus) ... ok
test_float (test.test_ctypes.test_cfuncs.CFunctions.test_float) ... ok
test_float_plus (test.test_ctypes.test_cfuncs.CFunctions.test_float_plus) ... ok
test_int (test.test_ctypes.test_cfuncs.CFunctions.test_int) ... ok
test_int_plus (test.test_ctypes.test_cfuncs.CFunctions.test_int_plus) ... ok
test_long (test.test_ctypes.test_cfuncs.CFunctions.test_long) ... ok
test_long_plus (test.test_ctypes.test_cfuncs.CFunctions.test_long_plus) ... ok
test_longdouble (test.test_ctypes.test_cfuncs.CFunctions.test_longdouble) ... ERROR
test_longdouble_plus (test.test_ctypes.test_cfuncs.CFunctions.test_longdouble_plus) ... ERROR
test_longlong (test.test_ctypes.test_cfuncs.CFunctions.test_longlong) ... ok
test_longlong_plus (test.test_ctypes.test_cfuncs.CFunctions.test_longlong_plus) ... ok
test_short (test.test_ctypes.test_cfuncs.CFunctions.test_short) ... ok
test_short_plus (test.test_ctypes.test_cfuncs.CFunctions.test_short_plus) ... ok
test_ubyte (test.test_ctypes.test_cfuncs.CFunctions.test_ubyte) ... ok
test_ubyte_plus (test.test_ctypes.test_cfuncs.CFunctions.test_ubyte_plus) ... ok
test_uint (test.test_ctypes.test_cfuncs.CFunctions.test_uint) ... ok
test_uint_plus (test.test_ctypes.test_cfuncs.CFunctions.test_uint_plus) ... ok
test_ulong (test.test_ctypes.test_cfuncs.CFunctions.test_ulong) ... ok
test_ulong_plus (test.test_ctypes.test_cfuncs.CFunctions.test_ulong_plus) ... ok
test_ulonglong (test.test_ctypes.test_cfuncs.CFunctions.test_ulonglong) ... ok
test_ulonglong_plus (test.test_ctypes.test_cfuncs.CFunctions.test_ulonglong_plus) ... ok
test_ushort (test.test_ctypes.test_cfuncs.CFunctions.test_ushort) ... ok
test_ushort_plus (test.test_ctypes.test_cfuncs.CFunctions.test_ushort_plus) ... ok
test_void (test.test_ctypes.test_cfuncs.CFunctions.test_void) ... ok
test_byte (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_byte) ... skipped "'WinDLL' is required"
test_byte_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_byte_plus) ... skipped "'WinDLL' is required"
test_callwithresult (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_callwithresult) ... skipped "'WinDLL' is required"
test_double (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_double) ... skipped "'WinDLL' is required"
test_double_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_double_plus) ... skipped "'WinDLL' is required"
test_float (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_float) ... skipped "'WinDLL' is required"
test_float_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_float_plus) ... skipped "'WinDLL' is required"
test_int (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_int) ... skipped "'WinDLL' is required"
test_int_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_int_plus) ... skipped "'WinDLL' is required"
test_long (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_long) ... skipped "'WinDLL' is required"
test_long_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_long_plus) ... skipped "'WinDLL' is required"
test_longdouble (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_longdouble) ... skipped "'WinDLL' is required"
test_longdouble_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_longdouble_plus) ... skipped "'WinDLL' is required"
test_longlong (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_longlong) ... skipped "'WinDLL' is required"
test_longlong_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_longlong_plus) ... skipped "'WinDLL' is required"
test_short (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_short) ... skipped "'WinDLL' is required"
test_short_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_short_plus) ... skipped "'WinDLL' is required"
test_ubyte (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ubyte) ... skipped "'WinDLL' is required"
test_ubyte_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ubyte_plus) ... skipped "'WinDLL' is required"
test_uint (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_uint) ... skipped "'WinDLL' is required"
test_uint_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_uint_plus) ... skipped "'WinDLL' is required"
test_ulong (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ulong) ... skipped "'WinDLL' is required"
test_ulong_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ulong_plus) ... skipped "'WinDLL' is required"
test_ulonglong (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ulonglong) ... skipped "'WinDLL' is required"
test_ulonglong_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ulonglong_plus) ... skipped "'WinDLL' is required"
test_ushort (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ushort) ... skipped "'WinDLL' is required"
test_ushort_plus (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_ushort_plus) ... skipped "'WinDLL' is required"
test_void (test.test_ctypes.test_cfuncs.stdcallCFunctions.test_void) ... skipped "'WinDLL' is required"
test_checkretval (test.test_ctypes.test_checkretval.Test.test_checkretval) ... ok
test_oledll (test.test_ctypes.test_checkretval.Test.test_oledll) ... skipped "'oledll' is required"
test_chararray (test.test_ctypes.test_delattr.TestCase.test_chararray) ... ok
test_simple (test.test_ctypes.test_delattr.TestCase.test_simple) ... ok
test_struct (test.test_ctypes.test_delattr.TestCase.test_struct) ... ok
test_localized_error_dlopen (test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlopen) ... ERROR
test_localized_error_dlsym (test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym) ... skipped 'test requires _ctypes.dlsym()'
test_localized_error_from_dll (test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll) ... ok
test_localized_error_in_dll (test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll) ... ok
test_null_dlsym (test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym) ... FAIL
test_GetLastError (test.test_ctypes.test_errno.Test.test_GetLastError) ... skipped 'Test specific to Windows'
test_open (test.test_ctypes.test_errno.Test.test_open) ... ok
test_find_library_with_gcc (test.test_ctypes.test_find.FindLibraryLinux.test_find_library_with_gcc) ... ok
test_find_library_with_ld (test.test_ctypes.test_find.FindLibraryLinux.test_find_library_with_ld) ... ok
test_find_on_libpath (test.test_ctypes.test_find.FindLibraryLinux.test_find_on_libpath) ... ok
test_gh114257 (test.test_ctypes.test_find.FindLibraryLinux.test_gh114257) ... ok
OpenGL libraries:
('GL', 'libGL.so.1')
('GLU', None)
('gle', None)
test_gl (test.test_ctypes.test_find.Test_OpenGL_libs.test_gl) ... ok
test_gle (test.test_ctypes.test_find.Test_OpenGL_libs.test_gle) ... skipped 'lib_gle not available'
test_glu (test.test_ctypes.test_find.Test_OpenGL_libs.test_glu) ... skipped 'lib_glu not available'
test_shell_injection (test.test_ctypes.test_find.Test_OpenGL_libs.test_shell_injection) ... ok
test_abstract (test.test_ctypes.test_frombuffer.Test.test_abstract) ... ok
test_fortran_contiguous (test.test_ctypes.test_frombuffer.Test.test_fortran_contiguous) ... skipped "No module named '_testbuffer'"
test_from_buffer (test.test_ctypes.test_frombuffer.Test.test_from_buffer) ... FAIL
test_from_buffer_copy (test.test_ctypes.test_frombuffer.Test.test_from_buffer_copy) ... ok
test_from_buffer_copy_with_offset (test.test_ctypes.test_frombuffer.Test.test_from_buffer_copy_with_offset) ... ok
test_from_buffer_memoryview (test.test_ctypes.test_frombuffer.Test.test_from_buffer_memoryview) ... ok
test_from_buffer_with_offset (test.test_ctypes.test_frombuffer.Test.test_from_buffer_with_offset) ... ok
test_abstract (test.test_ctypes.test_funcptr.CFuncPtrTestCase.test_abstract) ... ok
test_basic (test.test_ctypes.test_funcptr.CFuncPtrTestCase.test_basic) ... ok
test_dllfunctions (test.test_ctypes.test_funcptr.CFuncPtrTestCase.test_dllfunctions) ... ok
test_first (test.test_ctypes.test_funcptr.CFuncPtrTestCase.test_first) ... ok
test_structures (test.test_ctypes.test_funcptr.CFuncPtrTestCase.test_structures) ... ok
test_byval (test.test_ctypes.test_functions.FunctionTestCase.test_byval) ... ok
test_c_char_parm (test.test_ctypes.test_functions.FunctionTestCase.test_c_char_parm) ... FAIL
test_callbacks (test.test_ctypes.test_functions.FunctionTestCase.test_callbacks) ... ok
test_callbacks_2 (test.test_ctypes.test_functions.FunctionTestCase.test_callbacks_2) ... ok
test_doubleresult (test.test_ctypes.test_functions.FunctionTestCase.test_doubleresult) ... ok
test_errors (test.test_ctypes.test_functions.FunctionTestCase.test_errors) ... ok
test_floatresult (test.test_ctypes.test_functions.FunctionTestCase.test_floatresult) ... ok
test_intresult (test.test_ctypes.test_functions.FunctionTestCase.test_intresult) ... ok
test_longdoubleresult (test.test_ctypes.test_functions.FunctionTestCase.test_longdoubleresult) ... ERROR
test_longlong_callbacks (test.test_ctypes.test_functions.FunctionTestCase.test_longlong_callbacks) ... ok
test_longlongresult (test.test_ctypes.test_functions.FunctionTestCase.test_longlongresult) ... ok
test_mro (test.test_ctypes.test_functions.FunctionTestCase.test_mro) ... ok
test_pointers (test.test_ctypes.test_functions.FunctionTestCase.test_pointers) ... ok
test_sf1651235 (test.test_ctypes.test_functions.FunctionTestCase.test_sf1651235) ... FAIL
test_shorts (test.test_ctypes.test_functions.FunctionTestCase.test_shorts) ... ok
test_stringresult (test.test_ctypes.test_functions.FunctionTestCase.test_stringresult) ... ok
test_struct_return_2H (test.test_ctypes.test_functions.FunctionTestCase.test_struct_return_2H) ... ok
test_struct_return_2H_stdcall (test.test_ctypes.test_functions.FunctionTestCase.test_struct_return_2H_stdcall) ... skipped 'Windows-specific test'
test_struct_return_8H (test.test_ctypes.test_functions.FunctionTestCase.test_struct_return_8H) ... ok
test_struct_return_8H_stdcall (test.test_ctypes.test_functions.FunctionTestCase.test_struct_return_8H_stdcall) ... skipped 'Windows-specific test'
test_voidresult (test.test_ctypes.test_functions.FunctionTestCase.test_voidresult) ... ok
test_wchar_parm (test.test_ctypes.test_functions.FunctionTestCase.test_wchar_parm) ... FAIL
test_wchar_result (test.test_ctypes.test_functions.FunctionTestCase.test_wchar_result) ... ok
test_incomplete_example (test.test_ctypes.test_incomplete.MyTestCase.test_incomplete_example) ... ok
test_get (test.test_ctypes.test_init.InitTest.test_get) ... ok
test.test_ctypes.test_internals (unittest.loader.ModuleSkipped.test.test_ctypes.test_internals) ... skipped 'no sys.getrefcount on PyPy'
test_cint_array (test.test_ctypes.test_keeprefs.ArrayTestCase.test_cint_array) ... ok
test_p_cint (test.test_ctypes.test_keeprefs.PointerTestCase.test_p_cint) ... ok
test (test.test_ctypes.test_keeprefs.PointerToStructure.test) ... ok
test_ccharp (test.test_ctypes.test_keeprefs.SimpleTestCase.test_ccharp) ... ok
test_cint (test.test_ctypes.test_keeprefs.SimpleTestCase.test_cint) ... ok
test_ccharp_struct (test.test_ctypes.test_keeprefs.StructureTestCase.test_ccharp_struct) ... ok
test_cint_struct (test.test_ctypes.test_keeprefs.StructureTestCase.test_cint_struct) ... ok
test_struct_struct (test.test_ctypes.test_keeprefs.StructureTestCase.test_struct_struct) ... ok
test_qsort (test.test_ctypes.test_libc.LibTest.test_qsort) ... ok
test_sqrt (test.test_ctypes.test_libc.LibTest.test_sqrt) ... ok
libc_name is libc.so.6
test_1703286_A (test.test_ctypes.test_loading.LoaderTest.test_1703286_A) ... skipped 'Windows-specific test'
test_1703286_B (test.test_ctypes.test_loading.LoaderTest.test_1703286_B) ... skipped 'Windows-specific test'
test_find (test.test_ctypes.test_loading.LoaderTest.test_find) ... ok
test_load (test.test_ctypes.test_loading.LoaderTest.test_load) ... ok
test_load_dll_with_flags (test.test_ctypes.test_loading.LoaderTest.test_load_dll_with_flags) ... skipped 'test specific to Windows'
test_load_hasattr (test.test_ctypes.test_loading.LoaderTest.test_load_hasattr) ... skipped 'test specific to Windows'
test_load_library (test.test_ctypes.test_loading.LoaderTest.test_load_library) ... skipped 'test specific to Windows'
test_load_ordinal_functions (test.test_ctypes.test_loading.LoaderTest.test_load_ordinal_functions) ... skipped 'test specific to Windows'
test_load_version (test.test_ctypes.test_loading.LoaderTest.test_load_version) ... ok
test_find (test.test_ctypes.test_macholib.MachOTest.test_find) ... skipped 'OSX-specific test'
test_framework_info (test.test_ctypes.test_macholib.MachOTest.test_framework_info) ... skipped 'OSX-specific test'
test_info (test.test_ctypes.test_macholib.MachOTest.test_info) ... skipped 'OSX-specific test'
test_cast (test.test_ctypes.test_memfunctions.MemFunctionsTest.test_cast) ... ok
test_memmove (test.test_ctypes.test_memfunctions.MemFunctionsTest.test_memmove) ... ok
test_memset (test.test_ctypes.test_memfunctions.MemFunctionsTest.test_memset) ... ok
test_overflow (test.test_ctypes.test_memfunctions.MemFunctionsTest.test_overflow) ... skipped 'test disabled'
test_string_at (test.test_ctypes.test_memfunctions.MemFunctionsTest.test_string_at) ... skipped 'implementation detail specific to cpython'
test_wstring_at (test.test_ctypes.test_memfunctions.MemFunctionsTest.test_wstring_at) ... ok
test_alignments (test.test_ctypes.test_numbers.NumberTestCase.test_alignments) ... ok
test_bool_values (test.test_ctypes.test_numbers.NumberTestCase.test_bool_values) ... ok
test_byref (test.test_ctypes.test_numbers.NumberTestCase.test_byref) ... FAIL
test_char_from_address (test.test_ctypes.test_numbers.NumberTestCase.test_char_from_address) ... ok
test_default_init (test.test_ctypes.test_numbers.NumberTestCase.test_default_init) ... ok
test_float_from_address (test.test_ctypes.test_numbers.NumberTestCase.test_float_from_address) ... ok
test_float_overflow (test.test_ctypes.test_numbers.NumberTestCase.test_float_overflow) ... ok
test_floats (test.test_ctypes.test_numbers.NumberTestCase.test_floats) ... ok
test_from_param (test.test_ctypes.test_numbers.NumberTestCase.test_from_param) ... FAIL
test_init (test.test_ctypes.test_numbers.NumberTestCase.test_init) ... ok
test_int_from_address (test.test_ctypes.test_numbers.NumberTestCase.test_int_from_address) ... ok
test_integers (test.test_ctypes.test_numbers.NumberTestCase.test_integers) ... FAIL
test_signed_values (test.test_ctypes.test_numbers.NumberTestCase.test_signed_values) ... ok
test_sizes (test.test_ctypes.test_numbers.NumberTestCase.test_sizes) ... ok
test_typeerror (test.test_ctypes.test_numbers.NumberTestCase.test_typeerror) ... ok
test_unsigned_values (test.test_ctypes.test_numbers.NumberTestCase.test_unsigned_values) ... ok
test (test.test_ctypes.test_objects.TestCase.test) ... Trying:
from ctypes import *
Expecting nothing
ok
Trying:
array = (c_char_p * 5)()
Expecting nothing
ok
Trying:
print(array._objects)
Expecting:
None
ok
Trying:
array[4] = b'foo bar'
Expecting nothing
ok
Trying:
array._objects
Expecting:
{'4': b'foo bar'}
ok
Trying:
array[4]
Expecting:
b'foo bar'
ok
Trying:
class X(Structure):
_fields_ = [("x", c_int), ("y", c_int), ("array", c_char_p * 5)]
Expecting nothing
ok
Trying:
x = X()
Expecting nothing
ok
Trying:
print(x._objects)
Expecting:
None
ok
Trying:
print(x.array._b_base_) # doctest: +ELLIPSIS
Expecting:
<test.test_ctypes.test_objects.X object at 0x...>
ok
Trying:
x.array[0] = b'spam spam spam'
Expecting nothing
ok
Trying:
x._objects
Expecting:
{'0:2': b'spam spam spam'}
ok
Trying:
x.array._b_base_._objects
Expecting:
{'0:2': b'spam spam spam'}
ok
2 items had no tests:
test.test_ctypes.test_objects.TestCase
test.test_ctypes.test_objects.TestCase.test
1 items passed all tests:
13 tests in test.test_ctypes.test_objects
13 tests in 3 items.
13 passed and 0 failed.
Test passed.
ok
test_abstract (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_abstract) ... ok
test_array_pointers (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_array_pointers) ... ok
test_byref_pointer (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_byref_pointer) ... ok
test_byref_pointerpointer (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_byref_pointerpointer) ... ok
test_c_char (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_c_char) ... FAIL
test_c_wchar (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_c_wchar) ... FAIL
test_cstrings (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_cstrings) ... ERROR
test_cw_strings (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_cw_strings) ... ok
test_from_param_result_refcount (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_from_param_result_refcount) ... skipped 'implementation detail specific to cpython'
test_int_pointers (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_int_pointers) ... FAIL
test_issue31311 (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_issue31311) ... skipped 'implementation detail specific to cpython'
test_noctypes_argtype (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_noctypes_argtype) ... ok
test_parameter_repr (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_parameter_repr) ... FAIL
test_subclasses (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_subclasses) ... ok
test_subclasses_c_wchar_p (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_subclasses_c_wchar_p) ... ok
test_endian_types (test.test_ctypes.test_pep3118.Test.test_endian_types) ... <class 'test.test_ctypes.test_pep3118.BEPoint'>
FAIL
test_native_types (test.test_ctypes.test_pep3118.Test.test_native_types) ... <class 'ctypes.c_char'>
FAIL
test_simple (test.test_ctypes.test_pickling.PickleTest_0.test_simple) ... FAIL
test_struct (test.test_ctypes.test_pickling.PickleTest_0.test_struct) ... FAIL
test_unpickable (test.test_ctypes.test_pickling.PickleTest_0.test_unpickable) ... ok
test_wchar (test.test_ctypes.test_pickling.PickleTest_0.test_wchar) ... ok
test_simple (test.test_ctypes.test_pickling.PickleTest_1.test_simple) ... FAIL
test_struct (test.test_ctypes.test_pickling.PickleTest_1.test_struct) ... FAIL
test_unpickable (test.test_ctypes.test_pickling.PickleTest_1.test_unpickable) ... ok
test_wchar (test.test_ctypes.test_pickling.PickleTest_1.test_wchar) ... ok
test_simple (test.test_ctypes.test_pickling.PickleTest_2.test_simple) ... FAIL
test_struct (test.test_ctypes.test_pickling.PickleTest_2.test_struct) ... FAIL
test_unpickable (test.test_ctypes.test_pickling.PickleTest_2.test_unpickable) ... ok
test_wchar (test.test_ctypes.test_pickling.PickleTest_2.test_wchar) ... ok
test_simple (test.test_ctypes.test_pickling.PickleTest_3.test_simple) ... FAIL
test_struct (test.test_ctypes.test_pickling.PickleTest_3.test_struct) ... FAIL
test_unpickable (test.test_ctypes.test_pickling.PickleTest_3.test_unpickable) ... ok
test_wchar (test.test_ctypes.test_pickling.PickleTest_3.test_wchar) ... ok
test_simple (test.test_ctypes.test_pickling.PickleTest_4.test_simple) ... FAIL
test_struct (test.test_ctypes.test_pickling.PickleTest_4.test_struct) ... FAIL
test_unpickable (test.test_ctypes.test_pickling.PickleTest_4.test_unpickable) ... ok
test_wchar (test.test_ctypes.test_pickling.PickleTest_4.test_wchar) ... ok
test_simple (test.test_ctypes.test_pickling.PickleTest_5.test_simple) ... FAIL
test_struct (test.test_ctypes.test_pickling.PickleTest_5.test_struct) ... FAIL
test_unpickable (test.test_ctypes.test_pickling.PickleTest_5.test_unpickable) ... ok
test_wchar (test.test_ctypes.test_pickling.PickleTest_5.test_wchar) ... ok
test_abstract (test.test_ctypes.test_pointers.PointersTestCase.test_abstract) ... ok
test_basic (test.test_ctypes.test_pointers.PointersTestCase.test_basic) ... ok
test_basics (test.test_ctypes.test_pointers.PointersTestCase.test_basics) ... ok
test_bug_1467852 (test.test_ctypes.test_pointers.PointersTestCase.test_bug_1467852) ... ok
test_c_void_p (test.test_ctypes.test_pointers.PointersTestCase.test_c_void_p) ... ok
test_callbacks_with_pointers (test.test_ctypes.test_pointers.PointersTestCase.test_callbacks_with_pointers) ... ok
test_change_pointers (test.test_ctypes.test_pointers.PointersTestCase.test_change_pointers) ... ok
test_charpp (test.test_ctypes.test_pointers.PointersTestCase.test_charpp)
Test that a character pointer-to-pointer is correctly passed ... ok
test_from_address (test.test_ctypes.test_pointers.PointersTestCase.test_from_address) ... ok
test_other (test.test_ctypes.test_pointers.PointersTestCase.test_other) ... ok
test_pass_pointers (test.test_ctypes.test_pointers.PointersTestCase.test_pass_pointers) ... ok
test_pointer_crash (test.test_ctypes.test_pointers.PointersTestCase.test_pointer_crash) ... ok
test_pointer_type_name (test.test_ctypes.test_pointers.PointersTestCase.test_pointer_type_name) ... ok
test_pointer_type_str_name (test.test_ctypes.test_pointers.PointersTestCase.test_pointer_type_str_name) ... ok
test_pointers_bool (test.test_ctypes.test_pointers.PointersTestCase.test_pointers_bool) ... ok
test (test.test_ctypes.test_prototypes.ArrayTest.test) ... ok
test_POINTER_c_char_arg (test.test_ctypes.test_prototypes.CharPointersTestCase.test_POINTER_c_char_arg) ... ok
test_c_char_p_arg (test.test_ctypes.test_prototypes.CharPointersTestCase.test_c_char_p_arg) ... ok
test_c_void_p_arg (test.test_ctypes.test_prototypes.CharPointersTestCase.test_c_void_p_arg) ... ok
test_c_void_p_arg_with_c_wchar_p (test.test_ctypes.test_prototypes.CharPointersTestCase.test_c_void_p_arg_with_c_wchar_p) ... ok
test_instance (test.test_ctypes.test_prototypes.CharPointersTestCase.test_instance) ... ok
test_int_pointer_arg (test.test_ctypes.test_prototypes.CharPointersTestCase.test_int_pointer_arg) ... ok
test_paramflags (test.test_ctypes.test_prototypes.CharPointersTestCase.test_paramflags) ... ok
test_POINTER_c_wchar_arg (test.test_ctypes.test_prototypes.WCharPointersTestCase.test_POINTER_c_wchar_arg) ... ok
test_c_wchar_p_arg (test.test_ctypes.test_prototypes.WCharPointersTestCase.test_c_wchar_p_arg) ... ok
test.test_ctypes.test_python_api (unittest.loader.ModuleSkipped.test.test_ctypes.test_python_api) ... skipped "cannot import name 'pythonapi' from 'ctypes' (/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ctypes/__init__.py)"
test_FloatDivisionError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_FloatDivisionError) ... FAIL
test_IntegerDivisionError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_IntegerDivisionError) ... FAIL
test_TypeErrorDivisionError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_TypeErrorDivisionError) ... FAIL
test_ValueError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_ValueError) ... FAIL
test (test.test_ctypes.test_random_things.call_function_TestCase.test) ... skipped 'Windows-specific test'
test_callback (test.test_ctypes.test_refcounts.AnotherLeak.test_callback) ... ERROR
test_callback_py_object_none_return (test.test_ctypes.test_refcounts.AnotherLeak.test_callback_py_object_none_return) ... skipped 'implementation detail specific to cpython'
test_1 (test.test_ctypes.test_refcounts.RefcountTestCase.test_1) ... skipped 'implementation detail specific to cpython'
test_refcount (test.test_ctypes.test_refcounts.RefcountTestCase.test_refcount) ... skipped 'implementation detail specific to cpython'
test_char (test.test_ctypes.test_repr.ReprTest.test_char) ... ok
test_numbers (test.test_ctypes.test_repr.ReprTest.test_numbers) ... ok
test_from_dll (test.test_ctypes.test_returnfuncptrs.ReturnFuncPtrTestCase.test_from_dll) ... ok
test_from_dll_refcount (test.test_ctypes.test_returnfuncptrs.ReturnFuncPtrTestCase.test_from_dll_refcount) ... ok
test_with_prototype (test.test_ctypes.test_returnfuncptrs.ReturnFuncPtrTestCase.test_with_prototype) ... ok
test_without_prototype (test.test_ctypes.test_returnfuncptrs.ReturnFuncPtrTestCase.test_without_prototype) ... ok
test_compare (test.test_ctypes.test_simplesubclasses.Test.test_compare) ... ok
test_ignore_retval (test.test_ctypes.test_simplesubclasses.Test.test_ignore_retval) ... ok
test_int_callback (test.test_ctypes.test_simplesubclasses.Test.test_int_callback) ... ok
test_int_struct (test.test_ctypes.test_simplesubclasses.Test.test_int_struct) ... ok
test_16 (test.test_ctypes.test_sizes.SizesTestCase.test_16) ... ok
test_32 (test.test_ctypes.test_sizes.SizesTestCase.test_32) ... ok
test_64 (test.test_ctypes.test_sizes.SizesTestCase.test_64) ... ok
test_8 (test.test_ctypes.test_sizes.SizesTestCase.test_8) ... ok
test_size_t (test.test_ctypes.test_sizes.SizesTestCase.test_size_t) ... ok
test_ssize_t (test.test_ctypes.test_sizes.SizesTestCase.test_ssize_t) ... ok
test_time_t (test.test_ctypes.test_sizes.SizesTestCase.test_time_t) ... ok
test_char_array (test.test_ctypes.test_slicing.SlicesTestCase.test_char_array) ... ok
test_char_ptr (test.test_ctypes.test_slicing.SlicesTestCase.test_char_ptr) ... ok
test_char_ptr_with_free (test.test_ctypes.test_slicing.SlicesTestCase.test_char_ptr_with_free) ... ok
test_getslice_cint (test.test_ctypes.test_slicing.SlicesTestCase.test_getslice_cint) ... ok
test_setslice_cint (test.test_ctypes.test_slicing.SlicesTestCase.test_setslice_cint) ... ok
test_wchar_ptr (test.test_ctypes.test_slicing.SlicesTestCase.test_wchar_ptr) ... ok
test__POINTER_c_char (test.test_ctypes.test_stringptr.StringPtrTestCase.test__POINTER_c_char) ... skipped 'implementation detail specific to cpython'
test__c_char_p (test.test_ctypes.test_stringptr.StringPtrTestCase.test__c_char_p) ... ok
test_functions (test.test_ctypes.test_stringptr.StringPtrTestCase.test_functions) ... ok
test (test.test_ctypes.test_strings.StringArrayTestCase.test) ... ok
test_c_buffer_raw (test.test_ctypes.test_strings.StringArrayTestCase.test_c_buffer_raw) ... FAIL
test_c_buffer_value (test.test_ctypes.test_strings.StringArrayTestCase.test_c_buffer_value) ... FAIL
test_del_segfault (test.test_ctypes.test_strings.StringArrayTestCase.test_del_segfault) ... ok
test_param_1 (test.test_ctypes.test_strings.StringArrayTestCase.test_param_1) ... ok
test_param_2 (test.test_ctypes.test_strings.StringArrayTestCase.test_param_2) ... ok
test (test.test_ctypes.test_strings.WStringArrayTestCase.test) ... ok
test_nonbmp (test.test_ctypes.test_strings.WStringArrayTestCase.test_nonbmp) ... ok
test_basic_wstrings (test.test_ctypes.test_strings.WStringTestCase.test_basic_wstrings) ... skipped 'test disabled'
test_toolong (test.test_ctypes.test_strings.WStringTestCase.test_toolong) ... skipped 'test disabled'
test_wchar (test.test_ctypes.test_strings.WStringTestCase.test_wchar) ... ok
test_1_A (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_1_A) ... ok
test_1_B (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_1_B) ... ok
test_2 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_2) ... ok
test_3 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_3) ... ok
test_4 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_4) ... ok
test_5 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_5) ... FAIL
test_6 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_6) ... ok
test___get__ (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test___get__) ... ok
test___set__ (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test___set__) ... ok
test_gh99275 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_gh99275) ... FAIL
test_max_field_size_gh126937 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_max_field_size_gh126937) ... ok
test (test.test_ctypes.test_structures.PointerMemberTestCase.test) ... ok
test_none_to_pointer_fields (test.test_ctypes.test_structures.PointerMemberTestCase.test_none_to_pointer_fields) ... ok
test_38368 (test.test_ctypes.test_structures.StructureTestCase.test_38368) ... ok
test_abstract_class (test.test_ctypes.test_structures.StructureTestCase.test_abstract_class) ... ok
test_array_in_struct (test.test_ctypes.test_structures.StructureTestCase.test_array_in_struct) ... ok
test_bitfield_by_value (test.test_ctypes.test_structures.StructureTestCase.test_bitfield_by_value) ... skipped 'Test disabled for now - see bpo-16575/bpo-16576'
test_conflicting_initializers (test.test_ctypes.test_structures.StructureTestCase.test_conflicting_initializers) ... ok
test_empty (test.test_ctypes.test_structures.StructureTestCase.test_empty) ... ok
test_fields (test.test_ctypes.test_structures.StructureTestCase.test_fields) ... ok
test_huge_field_name (test.test_ctypes.test_structures.StructureTestCase.test_huge_field_name) ... ok
test_init_errors (test.test_ctypes.test_structures.StructureTestCase.test_init_errors) ... ok
test_initializers (test.test_ctypes.test_structures.StructureTestCase.test_initializers) ... ok
test_intarray_fields (test.test_ctypes.test_structures.StructureTestCase.test_intarray_fields) ... ok
test_invalid_field_types (test.test_ctypes.test_structures.StructureTestCase.test_invalid_field_types) ... ok
test_invalid_name (test.test_ctypes.test_structures.StructureTestCase.test_invalid_name) ... ok
test_issue18060_a (test.test_ctypes.test_structures.StructureTestCase.test_issue18060_a) ... ok
test_issue18060_b (test.test_ctypes.test_structures.StructureTestCase.test_issue18060_b) ... ok
test_issue18060_c (test.test_ctypes.test_structures.StructureTestCase.test_issue18060_c) ... ok
test_keyword_initializers (test.test_ctypes.test_structures.StructureTestCase.test_keyword_initializers) ... ok
test_methods (test.test_ctypes.test_structures.StructureTestCase.test_methods) ... ok
test_nested_initializers (test.test_ctypes.test_structures.StructureTestCase.test_nested_initializers) ... ok
test_packed (test.test_ctypes.test_structures.StructureTestCase.test_packed) ... ok
test_packed_c_limits (test.test_ctypes.test_structures.StructureTestCase.test_packed_c_limits) ... skipped 'implementation detail specific to cpython'
test_pass_by_value (test.test_ctypes.test_structures.StructureTestCase.test_pass_by_value) ... ok
test_pass_by_value_finalizer (test.test_ctypes.test_structures.StructureTestCase.test_pass_by_value_finalizer) ... ok
test_pass_by_value_in_register (test.test_ctypes.test_structures.StructureTestCase.test_pass_by_value_in_register) ... ok
test_positional_args (test.test_ctypes.test_structures.StructureTestCase.test_positional_args) ... ok
test_simple_structs (test.test_ctypes.test_structures.StructureTestCase.test_simple_structs) ... ok
test_struct_alignment (test.test_ctypes.test_structures.StructureTestCase.test_struct_alignment) ... ok
test_structures_with_wchar (test.test_ctypes.test_structures.StructureTestCase.test_structures_with_wchar) ... ok
test_union_by_value (test.test_ctypes.test_structures.StructureTestCase.test_union_by_value) ... skipped 'Test disabled for now - see bpo-16575/bpo-16576'
test_unions (test.test_ctypes.test_structures.StructureTestCase.test_unions) ... ok
test_subclass (test.test_ctypes.test_structures.SubclassesTest.test_subclass) ... ok
test_subclass_delayed (test.test_ctypes.test_structures.SubclassesTest.test_subclass_delayed) ... ok
test_contains_itself (test.test_ctypes.test_structures.TestRecursiveStructure.test_contains_itself) ... ok
test_vice_versa (test.test_ctypes.test_structures.TestRecursiveStructure.test_vice_versa) ... ok
test_native (test.test_ctypes.test_unaligned_structures.TestStructures.test_native) ... ok
test_swapped (test.test_ctypes.test_unaligned_structures.TestStructures.test_swapped) ... ok
test_buffers (test.test_ctypes.test_unicode.StringTestCase.test_buffers) ... ok
test_embedded_null (test.test_ctypes.test_unicode.StringTestCase.test_embedded_null) ... ok
test_func (test.test_ctypes.test_unicode.StringTestCase.test_func) ... ok
test_wcslen (test.test_ctypes.test_unicode.StringTestCase.test_wcslen) ... ok
test_buffers (test.test_ctypes.test_unicode.UnicodeTestCase.test_buffers) ... ok
test_embedded_null (test.test_ctypes.test_unicode.UnicodeTestCase.test_embedded_null) ... ok
test_wcslen (test.test_ctypes.test_unicode.UnicodeTestCase.test_wcslen) ... ok
test_frozentable (test.test_ctypes.test_values.PythonValuesTestCase.test_frozentable) ... skipped 'requires ctypes.pythonapi'
test_optimizeflag (test.test_ctypes.test_values.PythonValuesTestCase.test_optimizeflag) ... skipped 'requires ctypes.pythonapi'
test_undefined (test.test_ctypes.test_values.PythonValuesTestCase.test_undefined) ... skipped 'requires ctypes.pythonapi'
test_an_integer (test.test_ctypes.test_values.ValuesTestCase.test_an_integer) ... ok
test_undefined (test.test_ctypes.test_values.ValuesTestCase.test_undefined) ... ok
test_array_invalid_length (test.test_ctypes.test_varsize_struct.VarSizeTest.test_array_invalid_length) ... ok
test_resize (test.test_ctypes.test_varsize_struct.VarSizeTest.test_resize) ... ERROR
test_zerosized_array (test.test_ctypes.test_varsize_struct.VarSizeTest.test_zerosized_array) ... ok
test_SEH (test.test_ctypes.test_win32.FunctionCallTestCase.test_SEH) ... skipped 'Windows-specific test'
test_noargs (test.test_ctypes.test_win32.FunctionCallTestCase.test_noargs) ... skipped 'Windows-specific test'
test_sizes (test.test_ctypes.test_win32.ReturnStructSizesTestCase.test_sizes) ... skipped 'Windows-specific test'
test_struct_by_value (test.test_ctypes.test_win32.Structures.test_struct_by_value) ... ok
test_winerror (test.test_ctypes.test_win32.TestWinError.test_winerror) ... skipped 'Windows-specific test'
test_COMError (test.test_ctypes.test_win32.TestWintypes.test_COMError) ... skipped 'Windows-specific test'
test_HWND (test.test_ctypes.test_win32.TestWintypes.test_HWND) ... skipped 'Windows-specific test'
test_PARAM (test.test_ctypes.test_win32.TestWintypes.test_PARAM) ... skipped 'Windows-specific test'
test.test_ctypes.test_win32_com_foreign_func (unittest.loader.ModuleSkipped.test.test_ctypes.test_win32_com_foreign_func) ... skipped 'Windows-specific test'
test_signedness (test.test_ctypes.test_wintypes.WinTypesTest.test_signedness) ... ok
test_variant_bool (test.test_ctypes.test_wintypes.WinTypesTest.test_variant_bool) ... ok
======================================================================
ERROR: test_pyobject (test.test_ctypes.test_callbacks.Callbacks.test_pyobject)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_callbacks.py", line 98, in test_pyobject
from sys import getrefcount as grc
ImportError: cannot import name 'getrefcount' from 'sys' (unknown location)
======================================================================
ERROR: test_longdouble (test.test_ctypes.test_cfuncs.CFunctions.test_longdouble)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_cfuncs.py", line 170, in test_longdouble
self.assertEqual(self._dll.tf_D(42.), 14.)
^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 378, in __call__
funcptr = self._getfuncptr(argtypes, self._restype_, thisarg, variadic_args=variadic_args)
^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 448, in _getfuncptr
ptr = self._getfuncptr_fromaddress(argtypes, restype, variadic_args=variadic_args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 436, in _getfuncptr_fromaddress
ffiargs = [argtype.get_ffi_argtype() for argtype in argtypes]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 436, in <listcomp>
ffiargs = [argtype.get_ffi_argtype() for argtype in argtypes]
^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 75, in get_ffi_argtype
self._ffiargtype = self._build_ffiargtype()
^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 70, in _build_ffiargtype
return _shape_to_ffi_type(self._ffiargshape_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 324, in _shape_to_ffi_type
raise NotImplementedError(
NotImplementedError: c_longdouble is not supported as a ctypes FFI argument or return type in PyPy
======================================================================
ERROR: test_longdouble_plus (test.test_ctypes.test_cfuncs.CFunctions.test_longdouble_plus)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_cfuncs.py", line 177, in test_longdouble_plus
self.assertEqual(self._dll.tf_bD(0, 42.), 14.)
^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 378, in __call__
funcptr = self._getfuncptr(argtypes, self._restype_, thisarg, variadic_args=variadic_args)
^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 448, in _getfuncptr
ptr = self._getfuncptr_fromaddress(argtypes, restype, variadic_args=variadic_args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 436, in _getfuncptr_fromaddress
ffiargs = [argtype.get_ffi_argtype() for argtype in argtypes]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 436, in <listcomp>
ffiargs = [argtype.get_ffi_argtype() for argtype in argtypes]
^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 75, in get_ffi_argtype
self._ffiargtype = self._build_ffiargtype()
^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 70, in _build_ffiargtype
return _shape_to_ffi_type(self._ffiargshape_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 324, in _shape_to_ffi_type
raise NotImplementedError(
NotImplementedError: c_longdouble is not supported as a ctypes FFI argument or return type in PyPy
======================================================================
ERROR: test_localized_error_dlopen (test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlopen)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_dlerror.py", line 165, in test_localized_error_dlopen
_ctypes.dlopen(missing_filename, 2)
^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/dll.py", line 9, in dlopen
return _rawffi.CDLL(name)
^^^^
OSError: Cannot load library missing�.so: missing\uxFF
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_dlerror.py", line 164, in test_localized_error_dlopen
with self.assertRaisesRegex(OSError, filename_pattern):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/unittest/case.py", line 276, in __exit__
self._raiseFailure('"{}" does not match "{}"'.format(
^^^^^^
SystemError: unexpected internal exception (please report a bug): <CheckError object at 0x7f2dc79e5050>; internal traceback was dumped to stderr
======================================================================
ERROR: test_longdoubleresult (test.test_ctypes.test_functions.FunctionTestCase.test_longdoubleresult)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_functions.py", line 165, in test_longdoubleresult
result = f(1, 2, 3, 4, 5.0, 6.0)
^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 378, in __call__
funcptr = self._getfuncptr(argtypes, self._restype_, thisarg, variadic_args=variadic_args)
^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 448, in _getfuncptr
ptr = self._getfuncptr_fromaddress(argtypes, restype, variadic_args=variadic_args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 436, in _getfuncptr_fromaddress
ffiargs = [argtype.get_ffi_argtype() for argtype in argtypes]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 436, in <listcomp>
ffiargs = [argtype.get_ffi_argtype() for argtype in argtypes]
^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 75, in get_ffi_argtype
self._ffiargtype = self._build_ffiargtype()
^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 70, in _build_ffiargtype
return _shape_to_ffi_type(self._ffiargshape_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/basics.py", line 324, in _shape_to_ffi_type
raise NotImplementedError(
NotImplementedError: c_longdouble is not supported as a ctypes FFI argument or return type in PyPy
======================================================================
ERROR: test_cstrings (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_cstrings)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_parameters.py", line 57, in test_cstrings
self.assertIs(c_char_p.from_param(s)._obj, s)
^^^^
AttributeError: 'c_char_p' object has no attribute '_obj'
======================================================================
ERROR: test_callback (test.test_ctypes.test_refcounts.AnotherLeak.test_callback)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_refcounts.py", line 96, in test_callback
a = sys.getrefcount(ctypes.c_int)
^^^^^^^^^^^
AttributeError: module 'sys' has no attribute 'getrefcount'
======================================================================
ERROR: test_resize (test.test_ctypes.test_varsize_struct.VarSizeTest.test_resize)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_varsize_struct.py", line 18, in test_resize
resize(x, new_size)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/dummy.py", line 2, in dummyfunc
raise NotImplementedError("non-implemented ctypes function")
NotImplementedError: non-implemented ctypes function
======================================================================
FAIL: test_uint32_swap_big_endian (test.test_ctypes.test_bitfields.BitFieldTest.test_uint32_swap_big_endian)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_bitfields.py", line 294, in test_uint32_swap_big_endian
self.assertEqual(b, b'\xab\xcd\xef\x12')
^^^^^^^^^^^
AssertionError: bytearray(b'\x00\xab\xcd\x00') != b'\xab\xcd\xef\x12'
======================================================================
FAIL: test_slots (test.test_ctypes.test_byteswap.Test.test_slots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_byteswap.py", line 32, in test_slots
with self.assertRaises(AttributeError):
AssertionError: AttributeError not raised
======================================================================
FAIL: test_bad_type_arg (test.test_ctypes.test_cast.Test.test_bad_type_arg)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_cast.py", line 89, in test_bad_type_arg
self.assertRaises(TypeError, cast, array, None)
^^^^^^^^^^^^
AssertionError: TypeError not raised by cast
======================================================================
FAIL: test_null_dlsym (test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_dlerror.py", line 101, in test_null_dlsym
L.foo
^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ctypes/__init__.py", line 399, in __getattr__
func = self.__getitem__(name)
^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/ctypes/__init__.py", line 404, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 265, in __init__
ptr = self._getfuncptr([], ctypes.c_int)
^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib_pypy/_ctypes/function.py", line 466, in _getfuncptr
self._ptr = cdll.getfunc(self.name, ffi_argtypes, ffi_restype, variadic_args=variadic_args)
^^^^^^^
AttributeError: No symbol foo found in library /tmp/pytest/tmp717522e6/libfoo.so
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_dlerror.py", line 95, in test_null_dlsym
with self.assertRaisesRegex(AttributeError, "function 'foo' not found"):
AssertionError: "function 'foo' not found" does not match "No symbol foo found in library /tmp/pytest/tmp717522e6/libfoo.so"
======================================================================
FAIL: test_from_buffer (test.test_ctypes.test_frombuffer.Test.test_from_buffer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_frombuffer.py", line 26, in test_from_buffer
self.assertRaises(BufferError, a.append, 100)
^^^^^^^^^^^^
AssertionError: BufferError not raised by append
======================================================================
FAIL: test_c_char_parm (test.test_ctypes.test_functions.FunctionTestCase.test_c_char_parm)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_functions.py", line 69, in test_c_char_parm
self.assertEqual(str(cm.exception),
^^^^^^^^^^^
AssertionError: 'expected c_char instance instead of bytes' != 'argument 1: TypeError: one character bytes, bytearray or integer expected'
- expected c_char instance instead of bytes
+ argument 1: TypeError: one character bytes, bytearray or integer expected
======================================================================
FAIL: test_sf1651235 (test.test_ctypes.test_functions.FunctionTestCase.test_sf1651235)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_functions.py", line 410, in test_sf1651235
self.assertRaises(ArgumentError, lambda: callback((1, 2, 3, 4), POINT()))
^^^^^^^^^^^^
AssertionError: ArgumentError not raised by <lambda>
======================================================================
FAIL: test_wchar_parm (test.test_ctypes.test_functions.FunctionTestCase.test_wchar_parm)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_functions.py", line 84, in test_wchar_parm
self.assertEqual(str(cm.exception),
^^^^^^^^^^^
AssertionError: 'expected c_wchar instance instead of int' != 'argument 2: TypeError: unicode string expected instead of int instance'
- expected c_wchar instance instead of int
+ argument 2: TypeError: unicode string expected instead of int instance
======================================================================
FAIL: test_byref (test.test_ctypes.test_numbers.NumberTestCase.test_byref)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_numbers.py", line 95, in test_byref
self.assertEqual(ArgType, type(parm))
^^^^^^^^^^^
AssertionError: <class '_ctypes.pointer.LP_c_int'> != <class '_ctypes.pointer.LP_c_byte'>
======================================================================
FAIL: test_from_param (test.test_ctypes.test_numbers.NumberTestCase.test_from_param)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_numbers.py", line 89, in test_from_param
self.assertEqual(ArgType, type(t.from_param(0)))
^^^^^^^^^^^
AssertionError: <class '_ctypes.pointer.LP_c_int'> != <class 'ctypes.c_byte'>
======================================================================
FAIL: test_integers (test.test_ctypes.test_numbers.NumberTestCase.test_integers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_numbers.py", line 129, in test_integers
self.assertRaises(TypeError, t, d)
^^^^^^^^^^^^
AssertionError: TypeError not raised by c_byte
======================================================================
FAIL: test_c_char (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_c_char)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_parameters.py", line 86, in test_c_char
self.assertEqual(str(cm.exception),
^^^^^^^^^^^
AssertionError: 'expected c_char instance instead of bytes' != 'one character bytes, bytearray or integer expected'
- expected c_char instance instead of bytes
+ one character bytes, bytearray or integer expected
======================================================================
FAIL: test_c_wchar (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_c_wchar)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_parameters.py", line 95, in test_c_wchar
self.assertEqual(str(cm.exception),
^^^^^^^^^^^
AssertionError: 'expected c_wchar instance instead of str' != 'one character unicode string expected'
- expected c_wchar instance instead of str
+ one character unicode string expected
======================================================================
FAIL: test_int_pointers (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_int_pointers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_parameters.py", line 114, in test_int_pointers
self.assertEqual(LPINT.from_param(None), None)
^^^^^^^^^^^
AssertionError: <_ctypes.pointer.LP_c_int object at 0x00007f2dc710a470> != None
======================================================================
FAIL: test_parameter_repr (test.test_ctypes.test_parameters.SimpleTypesTestCase.test_parameter_repr)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_parameters.py", line 248, in test_parameter_repr
self.assertRegex(repr(c_bool.from_param(True)), r"^<cparam '\?' at 0x[A-Fa-f0-9]+>$")
^^^^^^^^^^^
AssertionError: Regex didn't match: "^<cparam '\\?' at 0x[A-Fa-f0-9]+>$" not found in 'c_bool(True)'
======================================================================
FAIL: test_endian_types (test.test_ctypes.test_pep3118.Test.test_endian_types)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pep3118.py", line 60, in test_endian_types
self.assertRaises(TypeError, len, v)
^^^^^^^^^^^^
AssertionError: TypeError not raised by len
======================================================================
FAIL: test_native_types (test.test_ctypes.test_pep3118.Test.test_native_types)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pep3118.py", line 31, in test_native_types
self.assertRaises(TypeError, len, v)
^^^^^^^^^^^^
AssertionError: TypeError not raised by len
======================================================================
FAIL: test_simple (test.test_ctypes.test_pickling.PickleTest_0.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 30, in test_simple
self.assertEqual(src.__dict__, dst.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi array e72f40 of length 1>} != {'_buffer': <_rawffi array ff6970 of length 1>}
- {'_buffer': <_rawffi array e72f40 of length 1>}
? ^ ---
+ {'_buffer': <_rawffi array ff6970 of length 1>}
? ^^^^
======================================================================
FAIL: test_struct (test.test_ctypes.test_pickling.PickleTest_0.test_struct)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 48, in test_struct
self.assertEqual(y.__dict__, x.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi struct a0b100>, 'x': 42} != {'_buffer': <_rawffi struct bce020>, 'x': 42}
- {'_buffer': <_rawffi struct a0b100>, 'x': 42}
? ^ ^^^
+ {'_buffer': <_rawffi struct bce020>, 'x': 42}
? ^^^ ^
======================================================================
FAIL: test_simple (test.test_ctypes.test_pickling.PickleTest_1.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 30, in test_simple
self.assertEqual(src.__dict__, dst.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi array 113e480 of length 1>} != {'_buffer': <_rawffi array 10d8ec0 of length 1>}
- {'_buffer': <_rawffi array 113e480 of length 1>}
? ^^ ^^
+ {'_buffer': <_rawffi array 10d8ec0 of length 1>}
? ^^^ ^
======================================================================
FAIL: test_struct (test.test_ctypes.test_pickling.PickleTest_1.test_struct)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 48, in test_struct
self.assertEqual(y.__dict__, x.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi struct b27070>, 'x': 42} != {'_buffer': <_rawffi struct a279e0>, 'x': 42}
- {'_buffer': <_rawffi struct b27070>, 'x': 42}
? ^ ^^
+ {'_buffer': <_rawffi struct a279e0>, 'x': 42}
? ^ ^^
======================================================================
FAIL: test_simple (test.test_ctypes.test_pickling.PickleTest_2.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 30, in test_simple
self.assertEqual(src.__dict__, dst.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi array fd4440 of length 1>} != {'_buffer': <_rawffi array d96240 of length 1>}
- {'_buffer': <_rawffi array fd4440 of length 1>}
? - ^^
+ {'_buffer': <_rawffi array d96240 of length 1>}
? ^^^
======================================================================
FAIL: test_struct (test.test_ctypes.test_pickling.PickleTest_2.test_struct)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 48, in test_struct
self.assertEqual(y.__dict__, x.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi struct e72f00>, 'x': 42} != {'_buffer': <_rawffi struct 9fa800>, 'x': 42}
- {'_buffer': <_rawffi struct e72f00>, 'x': 42}
? ^^^
+ {'_buffer': <_rawffi struct 9fa800>, 'x': 42}
? ^ ++
======================================================================
FAIL: test_simple (test.test_ctypes.test_pickling.PickleTest_3.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 30, in test_simple
self.assertEqual(src.__dict__, dst.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi array a27aa0 of length 1>} != {'_buffer': <_rawffi array d111c0 of length 1>}
- {'_buffer': <_rawffi array a27aa0 of length 1>}
? ^^^^^
+ {'_buffer': <_rawffi array d111c0 of length 1>}
? ^^^^^
======================================================================
FAIL: test_struct (test.test_ctypes.test_pickling.PickleTest_3.test_struct)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 48, in test_struct
self.assertEqual(y.__dict__, x.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi struct 107dad0>, 'x': 42} != {'_buffer': <_rawffi struct f502e0>, 'x': 42}
- {'_buffer': <_rawffi struct 107dad0>, 'x': 42}
? ^ ^^^^
+ {'_buffer': <_rawffi struct f502e0>, 'x': 42}
? ^^ ^^
======================================================================
FAIL: test_simple (test.test_ctypes.test_pickling.PickleTest_4.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 30, in test_simple
self.assertEqual(src.__dict__, dst.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi array 107ba90 of length 1>} != {'_buffer': <_rawffi array 10d8ec0 of length 1>}
- {'_buffer': <_rawffi array 107ba90 of length 1>}
? ^^^^
+ {'_buffer': <_rawffi array 10d8ec0 of length 1>}
? ^^^^
======================================================================
FAIL: test_struct (test.test_ctypes.test_pickling.PickleTest_4.test_struct)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 48, in test_struct
self.assertEqual(y.__dict__, x.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi struct ff5c20>, 'x': 42} != {'_buffer': <_rawffi struct ec5b20>, 'x': 42}
- {'_buffer': <_rawffi struct ff5c20>, 'x': 42}
? ^^ ^
+ {'_buffer': <_rawffi struct ec5b20>, 'x': 42}
? ^^ ^
======================================================================
FAIL: test_simple (test.test_ctypes.test_pickling.PickleTest_5.test_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 30, in test_simple
self.assertEqual(src.__dict__, dst.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi array 113be30 of length 1>} != {'_buffer': <_rawffi array f89880 of length 1>}
- {'_buffer': <_rawffi array 113be30 of length 1>}
? ^^^^^^
+ {'_buffer': <_rawffi array f89880 of length 1>}
? ^^^^^
======================================================================
FAIL: test_struct (test.test_ctypes.test_pickling.PickleTest_5.test_struct)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_pickling.py", line 48, in test_struct
self.assertEqual(y.__dict__, x.__dict__)
^^^^^^^^^^^
AssertionError: {'_buffer': <_rawffi struct ef75d0>, 'x': 42} != {'_buffer': <_rawffi struct b27110>, 'x': 42}
- {'_buffer': <_rawffi struct ef75d0>, 'x': 42}
? ^^ ^^
+ {'_buffer': <_rawffi struct b27110>, 'x': 42}
? ^^ ^^
======================================================================
FAIL: test_FloatDivisionError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_FloatDivisionError)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 66, in test_FloatDivisionError
with self.expect_unraisable(ZeroDivisionError):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/contextlib.py", line 144, in __exit__
next(self.gen)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 49, in expect_unraisable
self.assertEqual(cm.unraisable.err_msg,
^^^^^^^^^^^
AssertionError: 'Exception ignored in calling ctypes callback function' != 'Exception ignored on calling ctypes callback function'
- Exception ignored in calling ctypes callback function
? ^
+ Exception ignored on calling ctypes callback function
? ^
======================================================================
FAIL: test_IntegerDivisionError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_IntegerDivisionError)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 61, in test_IntegerDivisionError
with self.expect_unraisable(ZeroDivisionError):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/contextlib.py", line 144, in __exit__
next(self.gen)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 49, in expect_unraisable
self.assertEqual(cm.unraisable.err_msg,
^^^^^^^^^^^
AssertionError: 'Exception ignored in calling ctypes callback function' != 'Exception ignored on calling ctypes callback function'
- Exception ignored in calling ctypes callback function
? ^
+ Exception ignored on calling ctypes callback function
? ^
======================================================================
FAIL: test_TypeErrorDivisionError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_TypeErrorDivisionError)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 72, in test_TypeErrorDivisionError
with self.expect_unraisable(TypeError, err_msg):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/contextlib.py", line 144, in __exit__
next(self.gen)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 49, in expect_unraisable
self.assertEqual(cm.unraisable.err_msg,
^^^^^^^^^^^
AssertionError: 'Exception ignored in calling ctypes callback function' != 'Exception ignored on calling ctypes callback function'
- Exception ignored in calling ctypes callback function
? ^
+ Exception ignored on calling ctypes callback function
? ^
======================================================================
FAIL: test_ValueError (test.test_ctypes.test_random_things.CallbackTracbackTestCase.test_ValueError)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 56, in test_ValueError
with self.expect_unraisable(ValueError, '42'):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/contextlib.py", line 144, in __exit__
next(self.gen)
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_random_things.py", line 49, in expect_unraisable
self.assertEqual(cm.unraisable.err_msg,
^^^^^^^^^^^
AssertionError: 'Exception ignored in calling ctypes callback function' != 'Exception ignored on calling ctypes callback function'
- Exception ignored in calling ctypes callback function
? ^
+ Exception ignored on calling ctypes callback function
? ^
======================================================================
FAIL: test_c_buffer_raw (test.test_ctypes.test_strings.StringArrayTestCase.test_c_buffer_raw)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_strings.py", line 43, in test_c_buffer_raw
self.assertRaises(TypeError, setattr, buf, "value", memoryview(b"abc"))
^^^^^^^^^^^^
AssertionError: TypeError not raised by setattr
======================================================================
FAIL: test_c_buffer_value (test.test_ctypes.test_strings.StringArrayTestCase.test_c_buffer_value)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_strings.py", line 34, in test_c_buffer_value
self.assertRaises(TypeError, setattr, buf, "value", memoryview(b"Hello, World"))
^^^^^^^^^^^^
AssertionError: TypeError not raised by setattr
======================================================================
FAIL: test_5 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_5)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_struct_fields.py", line 56, in test_5
self.assertEqual(bytes(x), b'a\x00###')
^^^^^^^^^^^
AssertionError: b'a\x00b\x00\x00' != b'a\x00###'
======================================================================
FAIL: test_gh99275 (test.test_ctypes.test_struct_fields.StructFieldsTestCase.test_gh99275)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_struct_fields.py", line 69, in test_gh99275
with self.assertRaisesRegex(TypeError,
AssertionError: TypeError not raised
----------------------------------------------------------------------
Ran 514 tests in 1.441s
FAILED (failures=37, errors=8, skipped=97)
0:00:01 load avg: 0.53 [1/1/1] test_ctypes failed (8 errors, 37 failures)
== Tests result: FAILURE ==
1 test failed:
test_ctypes
Total duration: 1.8 sec
Total tests: run=514 failures=37 skipped=97
Total test files: run=1/1 failed=1
Result: FAILURE
/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_ctypes/test_parameters.py:61: SyntaxWarning: invalid octal escape sequence '\377'
self.assertRaises(TypeError, c_char_p.from_param, "123\377")
Warning -- Unraisable exception
Exception ignored in calling ctypes callback function <function _cast_addr at 0x00007f2dc8cdc660>
TypeError: cast() argument 2 must be a pointer type, not None
RPython traceback:
File "pypy_interpreter.c", line 62197, in BuiltinCode2_fastcall_2
File "implement_4.c", line 22770, in fastfunc_descr__format___2
File "pypy_objspace_std_10.c", line 6084, in Formatter_format_string
test test_ctypes failed
builder: pypy-c-jit-linux-x86-64 build #11852+
test: lib-python/3/test/test_ctypes::unmodified