* Package: dev-python/cffi-1.14.0 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_7 test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking cffi-1.14.0.tar.gz to /var/tmp/portage/dev-python/cffi-1.14.0/work >>> Source unpacked in /var/tmp/portage/dev-python/cffi-1.14.0/work >>> Preparing source in /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0 ... * python2_7: running distutils-r1_run_phase distutils-r1_python_compile python2.7 setup.py build /usr/lib64/python2.7/site-packages/pkg_resources/py2_warn.py:21: UserWarning: Setuptools will stop working on Python 2 ************************************************************ You are running Setuptools on Python 2, which is no longer supported and >>> SETUPTOOLS WILL STOP WORKING <<< in a subsequent release (no sooner than 2020-04-20). Please ensure you are installing Setuptools using pip 9.x or later or pin to `setuptools<45` in your environment. If you have done those things and are still encountering this message, please follow up at https://bit.ly/setuptools-py2-warning. ************************************************************ sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60) running build running build_py creating /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/__init__.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/backend_ctypes.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/commontypes.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/api.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/pkgconfig.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/vengine_cpy.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/model.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/cparser.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/recompiler.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/vengine_gen.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/ffiplatform.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/verifier.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/lock.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/error.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/setuptools_ext.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/cffi_opcode.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/_cffi_include.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/parse_c_type.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/_embedding.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi copying cffi/_cffi_errors.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/cffi warning: build_py: byte-compiling is disabled, skipping. running build_ext building '_cffi_backend' extension creating /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/temp.linux-x86_64-2.7 creating /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/temp.linux-x86_64-2.7/c x86_64-pc-linux-gnu-gcc -fno-strict-aliasing -O2 -pipe -march=native -frecord-gcc-switches -fwrapv -DNDEBUG -O2 -pipe -march=native -frecord-gcc-switches -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/lib64/libffi/include -I/usr/include/python2.7 -c c/_cffi_backend.c -o /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/temp.linux-x86_64-2.7/c/_cffi_backend.o c/_cffi_backend.c: In function ‘b_callback’: c/_cffi_backend.c:6245:5: warning: ‘ffi_prep_closure’ is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations] 6245 | if (ffi_prep_closure(closure, &cif_descr->cif, | ^~ In file included from c/_cffi_backend.c:15: /usr/lib64/libffi/include/ffi.h:334:1: note: declared here 334 | ffi_prep_closure (ffi_closure*, | ^~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -O2 -pipe -march=native -frecord-gcc-switches /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/temp.linux-x86_64-2.7/c/_cffi_backend.o -L/usr/lib64 -lffi -lpython2.7 -o /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python2_7/lib/_cffi_backend.so * python3_7: running distutils-r1_run_phase distutils-r1_python_compile python3.7 setup.py build -j 4 running build running build_py creating /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/__init__.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/backend_ctypes.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/commontypes.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/api.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/pkgconfig.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/vengine_cpy.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/model.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/cparser.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/recompiler.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/vengine_gen.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/ffiplatform.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/verifier.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/lock.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/error.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/setuptools_ext.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/cffi_opcode.py -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/_cffi_include.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/parse_c_type.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/_embedding.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi copying cffi/_cffi_errors.h -> /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/cffi warning: build_py: byte-compiling is disabled, skipping. running build_ext building '_cffi_backend' extension creating /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/temp.linux-x86_64-3.7 creating /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/temp.linux-x86_64-3.7/c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -frecord-gcc-switches -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/lib64/libffi/include -I/usr/include/python3.7m -c c/_cffi_backend.c -o /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/temp.linux-x86_64-3.7/c/_cffi_backend.o c/_cffi_backend.c: In function ‘b_callback’: c/_cffi_backend.c:6245:5: warning: ‘ffi_prep_closure’ is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations] 6245 | if (ffi_prep_closure(closure, &cif_descr->cif, | ^~ In file included from c/_cffi_backend.c:15: /usr/lib64/libffi/include/ffi.h:334:1: note: declared here 334 | ffi_prep_closure (ffi_closure*, | ^~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -O2 -pipe -march=native -frecord-gcc-switches /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/temp.linux-x86_64-3.7/c/_cffi_backend.o -L/usr/lib64 -lffi -lpython3.7m -o /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0-python3_7/lib/_cffi_backend.cpython-37m-x86_64-linux-gnu.so * Using python3.8 in global scope * python3_8: running distutils-r1_run_phase python_compile_all >>> Source compiled. >>> Test phase: dev-python/cffi-1.14.0 * python2_7: running distutils-r1_run_phase python_test /usr/lib64/python2.7/site-packages/pkg_resources/py2_warn.py:21: UserWarning: Setuptools will stop working on Python 2 ************************************************************ You are running Setuptools on Python 2, which is no longer supported and >>> SETUPTOOLS WILL STOP WORKING <<< in a subsequent release (no sooner than 2020-04-20). Please ensure you are installing Setuptools using pip 9.x or later or pin to `setuptools<45` in your environment. If you have done those things and are still encountering this message, please follow up at https://bit.ly/setuptools-py2-warning. ************************************************************ sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60) ============================= test session starts ============================== platform linux2 -- Python 2.7.18, pytest-4.6.10, py-1.8.0, pluggy-0.13.1 -- /usr/bin/python2.7 cachedir: .pytest_cache rootdir: /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0 collecting ... collected 2013 items c/test_c.py::test_load_library PASSED [ 0%] c/test_c.py::test_all_rtld_symbols PASSED [ 0%] c/test_c.py::test_new_primitive_type PASSED [ 0%] c/test_c.py::test_inspect_primitive_type PASSED [ 0%] c/test_c.py::test_cast_to_signed_char PASSED [ 0%] c/test_c.py::test_sizeof_type PASSED [ 0%] c/test_c.py::test_integer_types PASSED [ 0%] c/test_c.py::test_no_float_on_int_types PASSED [ 0%] c/test_c.py::test_float_types PASSED [ 0%] c/test_c.py::test_complex_types PASSED [ 0%] c/test_c.py::test_character_type PASSED [ 0%] c/test_c.py::test_pointer_type PASSED [ 0%] c/test_c.py::test_inspect_pointer_type PASSED [ 0%] c/test_c.py::test_pointer_to_int PASSED [ 0%] c/test_c.py::test_pointer_bool PASSED [ 0%] c/test_c.py::test_pointer_to_pointer PASSED [ 0%] c/test_c.py::test_reading_pointer_to_int PASSED [ 0%] c/test_c.py::test_reading_pointer_to_float PASSED [ 0%] c/test_c.py::test_cast_float_to_int PASSED [ 0%] c/test_c.py::test_newp_integer_types PASSED [ 0%] c/test_c.py::test_reading_pointer_to_char PASSED [ 1%] c/test_c.py::test_reading_pointer_to_pointer PASSED [ 1%] c/test_c.py::test_load_standard_library PASSED [ 1%] c/test_c.py::test_no_len_on_nonarray PASSED [ 1%] c/test_c.py::test_cmp_none PASSED [ 1%] c/test_c.py::test_invalid_indexing PASSED [ 1%] c/test_c.py::test_default_str PASSED [ 1%] c/test_c.py::test_default_unicode PASSED [ 1%] c/test_c.py::test_cast_from_cdataint PASSED [ 1%] c/test_c.py::test_void_type PASSED [ 1%] c/test_c.py::test_array_type PASSED [ 1%] c/test_c.py::test_inspect_array_type PASSED [ 1%] c/test_c.py::test_array_instance PASSED [ 1%] c/test_c.py::test_array_of_unknown_length_instance PASSED [ 1%] c/test_c.py::test_array_of_unknown_length_instance_with_initializer PASSED [ 1%] c/test_c.py::test_array_initializer PASSED [ 1%] c/test_c.py::test_array_add PASSED [ 1%] c/test_c.py::test_array_sub PASSED [ 1%] c/test_c.py::test_ptr_sub_unaligned PASSED [ 1%] c/test_c.py::test_cast_primitive_from_cdata PASSED [ 1%] c/test_c.py::test_new_primitive_from_cdata PASSED [ 2%] c/test_c.py::test_cast_between_pointers PASSED [ 2%] c/test_c.py::test_alignof PASSED [ 2%] c/test_c.py::test_new_struct_type PASSED [ 2%] c/test_c.py::test_new_union_type PASSED [ 2%] c/test_c.py::test_complete_struct PASSED [ 2%] c/test_c.py::test_complete_union PASSED [ 2%] c/test_c.py::test_struct_instance PASSED [ 2%] c/test_c.py::test_union_instance PASSED [ 2%] c/test_c.py::test_struct_pointer PASSED [ 2%] c/test_c.py::test_struct_init_list PASSED [ 2%] c/test_c.py::test_array_in_struct PASSED [ 2%] c/test_c.py::test_offsetof PASSED [ 2%] c/test_c.py::test_function_type PASSED [ 2%] c/test_c.py::test_inspect_function_type PASSED [ 2%] c/test_c.py::test_function_type_taking_struct PASSED [ 2%] c/test_c.py::test_function_void_result PASSED [ 2%] c/test_c.py::test_function_void_arg PASSED [ 2%] c/test_c.py::test_call_function_0 PASSED [ 2%] c/test_c.py::test_call_function_0_pretend_bool_result PASSED [ 2%] c/test_c.py::test_call_function_1 PASSED [ 3%] c/test_c.py::test_call_function_2 PASSED [ 3%] c/test_c.py::test_call_function_3 PASSED [ 3%] c/test_c.py::test_call_function_4 PASSED [ 3%] c/test_c.py::test_call_function_5 PASSED [ 3%] c/test_c.py::test_call_function_6 PASSED [ 3%] c/test_c.py::test_call_function_7 PASSED [ 3%] c/test_c.py::test_call_function_20 PASSED [ 3%] c/test_c.py::test_call_function_21 PASSED [ 3%] c/test_c.py::test_call_function_22 PASSED [ 3%] c/test_c.py::test_call_function_23 PASSED [ 3%] c/test_c.py::test_call_function_23_bis PASSED [ 3%] c/test_c.py::test_call_function_23_bool_array PASSED [ 3%] c/test_c.py::test_cannot_pass_struct_with_array_of_length_0 PASSED [ 3%] c/test_c.py::test_call_function_9 PASSED [ 3%] c/test_c.py::test_call_function_24 PASSED [ 3%] c/test_c.py::test_call_function_25 PASSED [ 3%] c/test_c.py::test_cannot_call_with_a_autocompleted_struct PASSED [ 3%] c/test_c.py::test_new_charp PASSED [ 3%] c/test_c.py::test_load_and_call_function PASSED [ 3%] c/test_c.py::test_read_variable PASSED [ 4%] c/test_c.py::test_read_variable_as_unknown_length_array PASSED [ 4%] c/test_c.py::test_write_variable PASSED [ 4%] c/test_c.py::test_callback PASSED [ 4%] c/test_c.py::test_callback_exception PASSED [ 4%] c/test_c.py::test_callback_return_type PASSED [ 4%] c/test_c.py::test_a_lot_of_callbacks PASSED [ 4%] c/test_c.py::test_callback_receiving_tiny_struct PASSED [ 4%] c/test_c.py::test_callback_returning_tiny_struct PASSED [ 4%] c/test_c.py::test_callback_receiving_struct PASSED [ 4%] c/test_c.py::test_callback_returning_struct PASSED [ 4%] c/test_c.py::test_callback_receiving_big_struct PASSED [ 4%] c/test_c.py::test_callback_returning_big_struct PASSED [ 4%] c/test_c.py::test_callback_returning_void PASSED [ 4%] c/test_c.py::test_enum_type PASSED [ 4%] c/test_c.py::test_cast_to_enum PASSED [ 4%] c/test_c.py::test_enum_with_non_injective_mapping PASSED [ 4%] c/test_c.py::test_enum_in_struct PASSED [ 4%] c/test_c.py::test_enum_overflow PASSED [ 4%] c/test_c.py::test_callback_returning_enum PASSED [ 4%] c/test_c.py::test_callback_returning_enum_unsigned PASSED [ 5%] c/test_c.py::test_callback_returning_char PASSED [ 5%] c/test_c.py::test_callback_returning_wchar_t PASSED [ 5%] c/test_c.py::test_struct_with_bitfields PASSED [ 5%] c/test_c.py::test_bitfield_instance PASSED [ 5%] c/test_c.py::test_bitfield_instance_init PASSED [ 5%] c/test_c.py::test_weakref PASSED [ 5%] c/test_c.py::test_no_inheritance PASSED [ 5%] c/test_c.py::test_assign_string PASSED [ 5%] c/test_c.py::test_add_error PASSED [ 5%] c/test_c.py::test_void_errors PASSED [ 5%] c/test_c.py::test_too_many_items PASSED [ 5%] c/test_c.py::test_more_type_errors PASSED [ 5%] c/test_c.py::test_more_overflow_errors PASSED [ 5%] c/test_c.py::test_newp_copying PASSED [ 5%] c/test_c.py::test_string PASSED [ 5%] c/test_c.py::test_string_byte PASSED [ 5%] c/test_c.py::test_string_wchar PASSED [ 5%] c/test_c.py::test_string_typeerror PASSED [ 5%] c/test_c.py::test_bug_convert_to_ptr PASSED [ 5%] c/test_c.py::test_set_struct_fields PASSED [ 6%] c/test_c.py::test_invalid_function_result_types PASSED [ 6%] c/test_c.py::test_struct_return_in_func PASSED [ 6%] c/test_c.py::test_cast_with_functionptr PASSED [ 6%] c/test_c.py::test_wchar PASSED [ 6%] c/test_c.py::test_char16 PASSED [ 6%] c/test_c.py::test_char32 PASSED [ 6%] c/test_c.py::test_wchar_variants_mix PASSED [ 6%] c/test_c.py::test_keepalive_struct PASSED [ 6%] c/test_c.py::test_nokeepalive_struct PASSED [ 6%] c/test_c.py::test_owning_repr PASSED [ 6%] c/test_c.py::test_cannot_dereference_void PASSED [ 6%] c/test_c.py::test_iter PASSED [ 6%] c/test_c.py::test_cmp PASSED [ 6%] c/test_c.py::test_buffer PASSED [ 6%] c/test_c.py::test_getcname PASSED [ 6%] c/test_c.py::test_errno PASSED [ 6%] c/test_c.py::test_errno_callback PASSED [ 6%] c/test_c.py::test_cast_to_array PASSED [ 6%] c/test_c.py::test_cast_invalid PASSED [ 6%] c/test_c.py::test_bug_float_convertion PASSED [ 7%] c/test_c.py::test_bug_delitem PASSED [ 7%] c/test_c.py::test_bug_delattr PASSED [ 7%] c/test_c.py::test_variable_length_struct SKIPPED [ 7%] c/test_c.py::test_autocast_int PASSED [ 7%] c/test_c.py::test_autocast_float PASSED [ 7%] c/test_c.py::test_longdouble PASSED [ 7%] c/test_c.py::test_get_array_of_length_zero PASSED [ 7%] c/test_c.py::test_nested_anonymous_struct PASSED [ 7%] c/test_c.py::test_nested_anonymous_struct_2 PASSED [ 7%] c/test_c.py::test_sizeof_union PASSED [ 7%] c/test_c.py::test_unaligned_struct PASSED [ 7%] c/test_c.py::test_CData_CType PASSED [ 7%] c/test_c.py::test_no_cdata_float PASSED [ 7%] c/test_c.py::test_bool PASSED [ 7%] c/test_c.py::test_bool_forbidden_cases PASSED [ 7%] c/test_c.py::test_typeoffsetof PASSED [ 7%] c/test_c.py::test_typeoffsetof_array PASSED [ 7%] c/test_c.py::test_typeoffsetof_no_bitfield PASSED [ 7%] c/test_c.py::test_rawaddressof PASSED [ 7%] c/test_c.py::test_newp_signed_unsigned_char PASSED [ 7%] c/test_c.py::test_newp_from_bytearray_doesnt_work PASSED [ 8%] c/test_c.py::test_string_assignment_to_byte_array PASSED [ 8%] c/test_c.py::test_FILE PASSED [ 8%] c/test_c.py::test_FILE_only_for_FILE_arg PASSED [ 8%] c/test_c.py::test_FILE_object PASSED [ 8%] c/test_c.py::test_errno_saved PASSED [ 8%] c/test_c.py::test_GetLastError SKIPPED [ 8%] c/test_c.py::test_nonstandard_integer_types PASSED [ 8%] c/test_c.py::test_cannot_convert_unicode_to_charp PASSED [ 8%] c/test_c.py::test_buffer_keepalive PASSED [ 8%] c/test_c.py::test_slice PASSED [ 8%] c/test_c.py::test_slice_ptr PASSED [ 8%] c/test_c.py::test_slice_array_checkbounds PASSED [ 8%] c/test_c.py::test_nonstandard_slice PASSED [ 8%] c/test_c.py::test_setslice PASSED [ 8%] c/test_c.py::test_setslice_array PASSED [ 8%] c/test_c.py::test_cdata_name_module_doc PASSED [ 8%] c/test_c.py::test_different_types_of_ptr_equality PASSED [ 8%] c/test_c.py::test_new_handle PASSED [ 8%] c/test_c.py::test_new_handle_cycle PASSED [ 8%] c/test_c.py::test_bitfield_as_x86_gcc PASSED [ 9%] c/test_c.py::test_bitfield_as_msvc PASSED [ 9%] c/test_c.py::test_bitfield_as_arm_gcc PASSED [ 9%] c/test_c.py::test_bitfield_as_ppc_gcc PASSED [ 9%] c/test_c.py::test_struct_array_no_length PASSED [ 9%] c/test_c.py::test_struct_array_no_length_explicit_position PASSED [ 9%] c/test_c.py::test_struct_array_not_aligned PASSED [ 9%] c/test_c.py::test_ass_slice PASSED [ 9%] c/test_c.py::test_void_p_arithmetic PASSED [ 9%] c/test_c.py::test_sizeof_sliced_array PASSED [ 9%] c/test_c.py::test_packed PASSED [ 9%] c/test_c.py::test_packed_with_bitfields PASSED [ 9%] c/test_c.py::test_from_buffer PASSED [ 9%] c/test_c.py::test_from_buffer_not_str_unicode PASSED [ 9%] c/test_c.py::test_from_buffer_bytearray PASSED [ 9%] c/test_c.py::test_from_buffer_more_cases PASSED [ 9%] c/test_c.py::test_from_buffer_require_writable PASSED [ 9%] c/test_c.py::test_from_buffer_types PASSED [ 9%] c/test_c.py::test_memmove PASSED [ 9%] c/test_c.py::test_memmove_buffer PASSED [ 9%] c/test_c.py::test_memmove_readonly_readwrite PASSED [ 10%] c/test_c.py::test_memmove_sign_check PASSED [ 10%] c/test_c.py::test_memmove_bad_cdata PASSED [ 10%] c/test_c.py::test_dereference_null_ptr PASSED [ 10%] c/test_c.py::test_mixup PASSED [ 10%] c/test_c.py::test_stdcall_function_type PASSED [ 10%] c/test_c.py::test_get_common_types PASSED [ 10%] c/test_c.py::test_unpack PASSED [ 10%] c/test_c.py::test_cdata_dir PASSED [ 10%] c/test_c.py::test_char_pointer_conversion PASSED [ 10%] c/test_c.py::test_primitive_comparison PASSED [ 10%] c/test_c.py::test_explicit_release_new PASSED [ 10%] c/test_c.py::test_explicit_release_new_contextmgr PASSED [ 10%] c/test_c.py::test_explicit_release_badtype PASSED [ 10%] c/test_c.py::test_explicit_release_badtype_contextmgr PASSED [ 10%] c/test_c.py::test_explicit_release_gc PASSED [ 10%] c/test_c.py::test_explicit_release_gc_contextmgr PASSED [ 10%] c/test_c.py::test_explicit_release_from_buffer PASSED [ 10%] c/test_c.py::test_explicit_release_from_buffer_contextmgr PASSED [ 10%] c/test_c.py::test_explicit_release_bytearray_on_cpython PASSED [ 10%] c/test_c.py::test_int_doesnt_give_bool PASSED [ 11%] c/test_c.py::test_cannot_call_null_function_pointer PASSED [ 11%] c/test_c.py::test_huge_structure PASSED [ 11%] testing/cffi0/test_cdata.py::test_typeof PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_integer_ranges <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_fixedsize_int <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_unsupported_type <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_single_integer <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_array_no_arg <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_array_indexing <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_array_args <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_array_varsize <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_pointer_init <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_cannot_cast <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_pointer_to_array <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_pointer_direct <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_repr <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_array_of_array <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_constructor_array_of_array <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_array_of_pointer_1 <- testing/cffi0/backend_tests.py PASSED [ 11%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_array_of_pointer_2 <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_char <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_wchar_t <- testing/cffi0/backend_tests.py SKIPPED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_none_as_null_doesnt_work <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_float <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_struct_simple <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_constructor_struct_from_dict <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_struct_pointer <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_struct_opaque <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_pointer_to_struct <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_constructor_struct_of_array <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_recursive_struct <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_union_simple <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_union_opaque <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_union_initializer <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_sizeof_type <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_sizeof_cdata <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_string_from_char_pointer <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_unicode_from_wchar_pointer <- testing/cffi0/backend_tests.py SKIPPED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_string_from_char_array <- testing/cffi0/backend_tests.py PASSED [ 12%] testing/cffi0/test_ctypes.py::TestCTypes::test_string_from_wchar_array <- testing/cffi0/backend_tests.py SKIPPED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_fetch_const_char_p_field <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_fetch_const_wchar_p_field <- testing/cffi0/backend_tests.py SKIPPED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_voidp <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_functionptr_simple <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_functionptr_advanced <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_functionptr_voidptr_return <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_functionptr_intptr_return <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_functionptr_void_return <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_char_cast <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_wchar_cast <- testing/cffi0/backend_tests.py SKIPPED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_cast_array_to_charp <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_cast_between_pointers <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_cast_pointer_and_int <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_cast_functionptr_and_int <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_callback_crash <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_cast_float <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum_in_struct <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum_non_contiguous <- testing/cffi0/backend_tests.py PASSED [ 13%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum_char_hex_oct <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum_partial <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_array_of_struct <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_pointer_to_array <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_iterate_array <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_offsetof <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_offsetof_nested <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_offsetof_array <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_alignof <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_bitfield <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_bitfield_enum <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_anonymous_struct <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_struct_with_two_usages <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_pointer_arithmetic <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_pointer_comparison <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_integer_comparison <- testing/cffi0/backend_tests.py PASSED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_ptr <- testing/cffi0/backend_tests.py SKIPPED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_array <- testing/cffi0/backend_tests.py SKIPPED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_ptr_size <- testing/cffi0/backend_tests.py SKIPPED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_array_size <- testing/cffi0/backend_tests.py SKIPPED [ 14%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_with_file <- testing/cffi0/backend_tests.py SKIPPED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_with_io <- testing/cffi0/backend_tests.py SKIPPED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_buffer_comparisons <- testing/cffi0/backend_tests.py SKIPPED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_array_in_struct <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_struct_containing_array_varsize_workaround <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_struct_containing_array_varsize <- testing/cffi0/backend_tests.py SKIPPED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_typeof_getcname <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_callback_as_function_argument <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_vararg_callback <- testing/cffi0/backend_tests.py SKIPPED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_callback_decorator <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_unique_types <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_anonymous_enum <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_opaque_enum <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_new_ctype <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum_with_non_injective_mapping <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_enum_refer_previous_enum_value <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_gc <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_gc_2 <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_gc_3 <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_gc_4 <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_gc_disable <- testing/cffi0/backend_tests.py PASSED [ 15%] testing/cffi0/test_ctypes.py::TestCTypes::test_gc_finite_list <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_CData_CType <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_bool <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_use_own_bool <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_ordering_bug1 <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_ordering_bug2 <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof_field <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof_field_nested <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof_anonymous_struct <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof_array <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof_pointer <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_addressof_array_in_struct <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_multiple_independent_structs <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_missing_include <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_include_typedef <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_include_struct <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_include_union <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_include_enum <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_include_typedef_2 <- testing/cffi0/backend_tests.py PASSED [ 16%] testing/cffi0/test_ctypes.py::TestCTypes::test_ignore_multiple_declarations_of_constant <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_struct_packed <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_pack_valueerror <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_define_integer_constant <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_opaque_struct_becomes_nonopaque <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_self_include <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_anonymous_enum_include <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_init_once <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_init_once_multithread <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_sizeof_struct_directly <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_callback_large_struct <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_ffi_array_as_init <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_too_many_initializers <- testing/cffi0/backend_tests.py PASSED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_array_of_func_ptr SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_structptr_argument SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_array_argument_as_list SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_cast_to_array_type SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_nested_anonymous_struct SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_nested_field_offset_align SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_nested_anonymous_union SKIPPED [ 17%] testing/cffi0/test_ctypes.py::TestCTypes::test_nested_anonymous_struct_2 SKIPPED [ 18%] testing/cffi0/test_ctypes.py::TestCTypes::test_CData_CType_2 PASSED [ 18%] testing/cffi0/test_ffi_backend.py::TestFFI::test_integer_ranges <- testing/cffi0/backend_tests.py ERROR [ 18%] ==================================== ERRORS ==================================== ________________ ERROR at setup of TestFFI.test_integer_ranges _________________ cls = def setup_class(cls): cls.module = None from testing.udir import udir udir.join('testownlib.c').write(SOURCE) if sys.platform == 'win32': # did we already build it? if cls.Backend is CTypesBackend: dll_path = str(udir) + '\\testownlib1.dll' # only ascii for the ctypes backend else: dll_path = str(udir) + '\\' + (u+'testownlib\u03be.dll') # non-ascii char if os.path.exists(dll_path): cls.module = dll_path return # try (not too hard) to find the version used to compile this python # no mingw from distutils.msvc9compiler import get_build_version version = get_build_version() toolskey = "VS%0.f0COMNTOOLS" % version toolsdir = os.environ.get(toolskey, None) if toolsdir is None: return productdir = os.path.join(toolsdir, os.pardir, os.pardir, "VC") productdir = os.path.abspath(productdir) vcvarsall = os.path.join(productdir, "vcvarsall.bat") # 64? arch = 'x86' if sys.maxsize > 2**32: arch = 'amd64' if os.path.isfile(vcvarsall): cmd = '"%s" %s' % (vcvarsall, arch) + ' & cl.exe testownlib.c ' \ ' /LD /Fetestownlib.dll' subprocess.check_call(cmd, cwd = str(udir), shell=True) os.rename(str(udir) + '\\testownlib.dll', dll_path) cls.module = dll_path else: encoded = None if cls.Backend is not CTypesBackend: try: unicode_name = u+'testownlibcaf\xe9' encoded = unicode_name.encode(sys.getfilesystemencoding()) if sys.version_info >= (3,): encoded = str(unicode_name) except UnicodeEncodeError: pass if encoded is None: unicode_name = u+'testownlib' encoded = str(unicode_name) subprocess.check_call( "cc testownlib.c -shared -fPIC -o '%s.so'" % (encoded,), > cwd=str(udir), shell=True) testing/cffi0/test_ownlib.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ popenargs = ("cc testownlib.c -shared -fPIC -o 'testownlibcaf\xc3\xa9.so'",) kwargs = {'cwd': '/var/tmp/portage/dev-python/cffi-1.14.0/temp/ffi-0', 'shell': True} retcode = 127 cmd = "cc testownlib.c -shared -fPIC -o 'testownlibcaf\xc3\xa9.so'" def check_call(*popenargs, **kwargs): """Run command with arguments. Wait for command to complete. If the exit code was zero then return, otherwise raise CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute. The arguments are the same as for the Popen constructor. Example: check_call(["ls", "-l"]) """ retcode = call(*popenargs, **kwargs) if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] > raise CalledProcessError(retcode, cmd) E CalledProcessError: Command 'cc testownlib.c -shared -fPIC -o 'testownlibcaf\xe9.so'' returned non-zero exit status 127 /usr/lib64/python2.7/subprocess.py:190: CalledProcessError ---------------------------- Captured stderr setup ----------------------------- /bin/sh: cc: command not found =============================== warnings summary =============================== c/test_c.py::test_cast_with_functionptr /var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0/c/test_c.py:2170: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct) newp(BStructPtr, [cast(BCharP, 0)]) -- Docs: https://docs.pytest.org/en/latest/warnings.html ========= 340 passed, 24 skipped, 1 warnings, 1 error in 13.00 seconds ========= * ERROR: dev-python/cffi-1.14.0::gentoo failed (test phase): * Testing failed with python2.7 * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 2962: Called distutils-r1_src_test * environment, line 1256: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 456: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2558: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2038: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2036: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 844: Called distutils-r1_run_phase 'python_test' * environment, line 1193: Called python_test * environment, line 2904: Called die * The specific snippet of code: * pytest -x -vv --ignore testing/test_zintegration.py --ignore testing/embedding c/ testing/ || die "Testing failed with ${EPYTHON}" * * If you need support, post the output of `emerge --info '=dev-python/cffi-1.14.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/cffi-1.14.0::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/dev-python/cffi-1.14.0:20200516-033512.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/cffi-1.14.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/cffi-1.14.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0' * S: '/var/tmp/portage/dev-python/cffi-1.14.0/work/cffi-1.14.0' emerge --info: Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r3, 5.4.0-1009-aws x86_64) ================================================================= System uname: Linux-5.4.0-1009-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 KiB Mem: 16011344 total, 8887844 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 18 May 2020 05:35:19 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.2::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 10.1.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j4" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS