Closed lbazan closed 3 years ago
ohhh sorry the giant letters
hi,
there is already a PR https://github.com/kontron/python-ipmi/pull/73 that should fix the issue. But unfortunatly we have to switch the nose framework before because it seems not to be supported any longer.
hi,
I merged the PR #73. Could you please recheck if the problem is fixed?
this is fixed with #73
nosetests-3.9 -v tests /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py:40: SyntaxWarning: "is" with a literal. Did you mean "=="? if data[1] is 0xff: /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py:206: SyntaxWarning: "is not" with a literal. Did you mean "!="? and status.command_in_progress is not 0x34: /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/lan.py:61: SyntaxWarning: "is not" with a literal. Did you mean "!="? if revision_only is not 1: /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py:377: SyntaxWarning: "is" with a literal. Did you mean "=="? if (capabilities & 0x03) is 0: /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py:379: SyntaxWarning: "is" with a literal. Did you mean "=="? if (capabilities & 0x03) is 1: /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py:381: SyntaxWarning: "is" with a literal. Did you mean "=="? if (capabilities & 0x03) is 2: /builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py:383: SyntaxWarning: "is" with a literal. Did you mean "=="? if (capabilities & 0x03) is 3: tests.interfaces.test_ipmb.test_checksum ... ok tests.interfaces.test_ipmb.test_header_encode ... ERROR tests.interfaces.test_ipmb.test_header_rsp_decode ... ok tests.interfaces.test_ipmb.test_encode_ipmb_msg ... ERROR tests.interfaces.test_ipmb.test_encode_send_message ... ERROR tests.interfaces.test_ipmb.test_encode_bridged_message ... ERROR tests.interfaces.test_ipmb.test_decode_bridged_message ... ok tests.interfaces.test_ipmb.test_rx_filter ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_build_ipmitool_target_ipmb_address ... ok tests.interfaces.test_ipmitool.TestIpmitool.test_build_ipmitool_target_routing_2 ... ok tests.interfaces.test_ipmitool.TestIpmitool.test_build_ipmitool_target_routing_3 ... ok tests.interfaces.test_ipmitool.TestIpmitool.test_rmcp_ping ... ok tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive ... ok tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_completion_code_not_ok ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_completion_code_timeout ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_lanplus ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_no_auth ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_return_value ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_serial ... ERROR tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_timeout_without_response ... ok tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_valid ... ERROR tests.interfaces.test_rmcp.TestAsfMsg.test_pack ... ok tests.interfaces.test_rmcp.TestAsfMsg.test_tostr ... ok tests.interfaces.test_rmcp.TestAsfMsg.test_unpack ... ok tests.interfaces.test_rmcp.TestAsfPing.test_pack ... ok tests.interfaces.test_rmcp.TestAsfPong.test_unpack ... ok tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack ... ERROR tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack_auth_md5 ... ok tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack_password ... ok tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack_with_data ... ERROR tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack_with_session ... ERROR tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_unpack ... ok tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_unpack_auth ... ok tests.interfaces.test_rmcp.TestRmcp.test_send_and_receive ... ok tests.interfaces.test_rmcp.TestRmcpMsg.test_rmcpmsg_pack ... ok tests.interfaces.test_rmcp.TestRmcpMsg.test_rmcpmsg_unpack ... ok tests.msgs.test_bmc.test_getdeviceid_decode_rsp_with_cc ... ok tests.msgs.test_bmc.test_getdeviceid_decode_valid_res ... ok tests.msgs.test_bmc.test_getdeviceid_decode_valid_res_wo_aux ... ok tests.msgs.test_bmc.test_getselftestresults_decode_test_passed_rsp ... ok tests.msgs.test_bmc.test_getselftestresults_decode_test_fail_not_implemented_rsp ... ok tests.msgs.test_bmc.test_getselftestresults_decode_test_fail_corrupted_sel_rsp ... ok tests.msgs.test_bmc.test_getselftestresults_decode_test_fail_corrupted_sdr_rsp ... ok tests.msgs.test_bmc.test_getselftestresults_decode_test_fail_corrupted_fru_rsp ... ok tests.msgs.test_chassis.test_getchassisstatus_encode_valid_req ... ERROR tests.msgs.test_chassis.test_getchassisstatus_decode_valid_rsp ... ok tests.msgs.test_chassis.test_getchassisstatus_decode_valid_optional_byte_rsp ... ok tests.msgs.test_chassis.test_chassiscontrol_encode_valid_req ... ERROR tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_all_disabled_req ... ERROR tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_oem_2_req ... ERROR tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_oem_1_req ... ERROR tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_oem_0_req ... ERROR tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_receive_queue_interrupt_req ... ERROR tests.msgs.test_device_messaging.test_getbmcglobalenables_decode_all_disabled_rsp ... ok tests.msgs.test_device_messaging.test_getbmcglobalenables_decode_oem_2_enabled_rsp ... ok tests.msgs.test_device_messaging.test_getbmcglobalenables_decode_oem_0_enabled_rsp ... ok tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_none_req ... ERROR tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_oem_2_req ... ERROR tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_oem_0_req ... ERROR tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_receive_message_queue_req ... ERROR tests.msgs.test_device_messaging.test_getmessageflags_decode_not_flag_set_rsp ... ok tests.msgs.test_device_messaging.test_getmessageflags_decode_oem_2_set_rsp ... ok tests.msgs.test_device_messaging.test_getmessageflags_decode_event_message_full_set_rsp ... ok tests.msgs.test_device_messaging.test_enablemessagechannelreceive_encode_all_off_req ... ERROR tests.msgs.test_device_messaging.test_enablemessagechannelreceive_encode_channel1_enable_req ... ERROR tests.msgs.test_device_messaging.test_enablemessagechannelreceive_encode_channel2_enable_req ... ERROR tests.msgs.test_device_messaging.test_enablemessagechannelreceive_decode_channel1_enabled_rsp ... ok tests.msgs.test_device_messaging.test_getmessage_decode_no_data_rsp ... ok tests.msgs.test_device_messaging.test_getmessage_decode_with_data_rsp ... ok tests.msgs.test_device_messaging.test_readeventmessagebuffer_decode_rsp ... ok tests.msgs.test_device_messaging.test_masterwriteread_encode_req_all_zero_read ... ERROR tests.msgs.test_device_messaging.test_masterwriteread_encode_req_for_read ... ERROR tests.msgs.test_device_messaging.test_masterwriteread_encode_req_for_write ... ERROR tests.msgs.test_device_messaging.test_masterwriteread_decode_rsp ... ok tests.msgs.test_device_messaging.test_get_channel_authentication_capabilities_req ... ERROR tests.msgs.test_device_messaging.test_get_channel_authentication_capabilities_rsp ... ok tests.msgs.test_device_messaging.test_get_session_challenge_req ... ERROR tests.msgs.test_event.test_seteventreceiver_encode_lun0_req ... ERROR tests.msgs.test_event.test_seteventreceiver_encode_lun3_req ... ERROR tests.msgs.test_event.test_geteventreceiver_decode_lun0_rsp ... ok tests.msgs.test_event.test_geteventreceiver_decode_lun3_rsp ... ok tests.msgs.test_fru.test_fruinventoryareainfo_decode_valid_rsp ... ok tests.msgs.test_fru.test_writefrudatareq_decode_valid_req ... ok tests.msgs.test_fru.test_writefrudatareq_encode_valid_req ... ERROR tests.msgs.test_fru.test_writefrudatareq_decode_valid_req_wo_data ... ok tests.msgs.test_fru.test_writefrudatareq_encode_valid_req_wo_data ... ERROR tests.msgs.test_fru.test_writefrudatareq_decode_invalid_req ... ok tests.msgs.test_fru.test_readfrudatareq_decode_valid_req ... ok tests.msgs.test_fru.test_readfrudatareq_decode_short_req ... ok tests.msgs.test_fru.test_readfrudatareq_decode_long_req ... ok tests.msgs.test_fru.test_readfrudatareq_encode_valid_req ... ERROR tests.msgs.test_fru.test_readfrudatarsp_decode_valid_rsp ... ok tests.msgs.test_fru.test_readfrudatarsp_decode_rsp_with_cc ... ok tests.msgs.test_fru.test_readfrudatarsp_decode_invalid_rsp ... ok tests.msgs.test_fru.test_readfrudatarsp_encode_valid_rsp ... ERROR tests.msgs.test_fru.test_readfrudatarsp_encode_invalid_rsp ... ok tests.msgs.test_hpm.test_uploadfirmwareblockreq_encode ... ERROR tests.msgs.test_hpm.test_activatefirmwarereq_decode_valid_req ... ok tests.msgs.test_hpm.test_activatefirmwarereq_encode_valid_req ... ERROR tests.msgs.test_hpm.test_activatefirmwarereq_decode_valid_req_wo_optional ... ok tests.msgs.test_hpm.test_activatefirmwarereq_encode_valid_req_wo_optional ... ERROR tests.msgs.test_message.test_unsignedint_encode ... ok tests.msgs.test_message.test_unsignedint_decode ... ok tests.msgs.test_message.test_string_encode ... ERROR tests.msgs.test_message.test_string_decode ... ERROR tests.msgs.test_message.test_remainingbytes_encode ... ok tests.msgs.test_message.test_message ... ok tests.msgs.test_picmg.test_get_picmg_properties_req ... ok tests.msgs.test_picmg.test_get_address_info_picmg_2_9_rsp ... ok tests.msgs.test_picmg.test_get_address_info_picmg_3_0_rsp ... ok tests.msgs.test_picmg.test_get_address_info_mtca_rsp ... ok tests.msgs.test_picmg.test_get_shelf_address_info_rsp ... ok tests.msgs.test_picmg.test_clear_activation_lock_req ... ERROR tests.msgs.test_picmg.test_set_activation_lock_req ... ERROR tests.msgs.test_picmg.test_clear_deactivation_lock_req ... ERROR tests.msgs.test_picmg.test_set_deactivation_lock_req ... ERROR tests.msgs.test_picmg.test_decode_rsp_local_control_state ... ok tests.msgs.test_picmg.test_decode_rsp_override_mode ... ok tests.msgs.test_picmg.test_decode_rsp_lamp_test_and_override_mode ... ok tests.msgs.test_picmg.test_decode_rsp_only_lamp_test_mode ... ok tests.msgs.test_sdr.test_getsdrrepositoryinfo_encode_req ... ERROR tests.msgs.test_sdr.test_getsdrrepositoryinfo_decode_rsp ... ok tests.msgs.test_sdr.test_getsdrrepositoryallocationinfo_encode_req ... ERROR tests.msgs.test_sdr.test_getsdrrepositoryallocationinfo_decode_rsp ... ok tests.msgs.test_sdr.test_reservesdrrepository_encode_req ... ERROR tests.msgs.test_sdr.test_reservesdrrepository_decode_rsp ... ok tests.msgs.test_sdr.test_getsdr_encode_req ... ERROR tests.msgs.test_sdr.test_getsdr_decode_rsp ... ok tests.msgs.test_sdr.test_addsdr_encode_req ... ERROR tests.msgs.test_sdr.test_addsdr_decode_rsp ... ok tests.msgs.test_sdr.test_partialaddsdr_encode_req ... ERROR tests.msgs.test_sdr.test_partialaddsdr_decode_rsp ... ok tests.msgs.test_sdr.test_deletesdr_encode_req ... ERROR tests.msgs.test_sdr.test_deletesdr_decode_rsp ... ok tests.msgs.test_sdr.test_clearsdrrepository_encode_req ... ERROR tests.msgs.test_sdr.test_clearsdrrepository_decode_rsp ... ok tests.msgs.test_sel.test_getselentry_decode_rsp_with_cc ... ok tests.msgs.test_sel.test_getselentry_decode_invalid_rsp ... ok tests.msgs.test_sel.test_getselentry_decode_valid_rsp ... ok tests.msgs.test_sel.test_getselentry_encode_valid_rsp ... ERROR tests.msgs.test_sensor.test_getdevicesdrinfo_encode_req ... ERROR tests.msgs.test_sensor.test_getdevicesdrinfo_encode_rsp ... ok tests.msgs.test_sensor.test_getdevicesdrinfo_encode_rsp_with_timestamp ... ok tests.msgs.test_sensor.test_getdevicesdr_encode_req ... ERROR tests.msgs.test_sensor.test_getdevicesdr_decode_rsp ... ok tests.msgs.test_sensor.test_setsensorhysteresis_encode_req ... ERROR tests.msgs.test_sensor.test_getsensorhysteresis_encode_req ... ERROR tests.msgs.test_sensor.test_getsensorhysteresis_decode_rsp ... ok tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_unr ... ERROR tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_ucr ... ERROR tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_unc ... ERROR tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_lnr ... ERROR tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_lcr ... ERROR tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_lnc ... ERROR tests.msgs.test_sensor.test_setsensoreventenable_encode_req ... ERROR tests.msgs.test_sensor.test_setsensoreventenable_encode_cfg_req ... ERROR tests.msgs.test_sensor.test_setsensoreventenable_encode_scanning_enabled_req ... ERROR tests.msgs.test_sensor.test_setsensoreventenable_encode_event_enabled_req ... ERROR tests.msgs.test_sensor.test_setsensoreventenable_encode_byte3_req ... ERROR tests.msgs.test_sensor.test_setsensoreventenable_encode_byte34_req ... ERROR tests.msgs.test_sensor.test_getsensoreventenable_encode_req ... ERROR tests.msgs.test_sensor.test_getsensoreventenable_decode_event_enabled_rsp ... ok tests.msgs.test_sensor.test_getsensoreventenable_decode_scanning_enabled_rsp ... ok tests.msgs.test_sensor.test_getsensoreventenable_decode_byte3_rsp ... ok tests.msgs.test_sensor.test_getsensoreventenable_decode_byte34_rsp ... ok tests.msgs.test_sensor.test_getsensoreventenable_decode_byte3456_rsp ... ok tests.msgs.test_sensor.test_rearmsensorevents_encode_req ... ERROR tests.msgs.test_sensor.test_rearmsensorevents_decode_rsp ... ok tests.test_bmc.test_watchdog_object ... ok tests.test_bmc.test_deviceid_object ... ERROR tests.test_bmc.test_deviceid_object_with_aux ... ERROR tests.test_chassis.test_chassisstatus_object ... ok tests.test_errors.test_DecodingError ... ok tests.test_errors.test_EncodingError ... ok tests.test_errors.test_CompletionCodeError ... ok tests.test_errors.test_NotSupportedError ... ok tests.test_errors.test_DescriptionError ... ok tests.test_errors.test_RetryError ... ok tests.test_errors.test_DataNotFound ... ok tests.test_errors.test_HpmError_no_msg ... ok tests.test_fields.test_versionfield_object ... ERROR tests.test_fields.test_versionfield_invalid ... ok tests.test_fields.test_versionfield_decoding_error ... ok tests.test_fru.test_frudata_object ... ok tests.test_fru.test_commonheader_object ... ok tests.test_fru.test_fru_inventory_from_file ... ok tests.test_fru.test_board_area ... ok tests.test_fru.test_product_area ... ok tests.test_helper.test_clear_repository_helper ... ok tests.test_hpm.TestComponentProperty.test_currentversion ... ERROR tests.test_hpm.TestComponentProperty.test_deferredversion ... ERROR tests.test_hpm.TestComponentProperty.test_descriptionstring ... ERROR tests.test_hpm.TestComponentProperty.test_descriptionstring_with_trailinge_zeros ... ERROR tests.test_hpm.TestComponentProperty.test_general ... ok tests.test_hpm.TestComponentProperty.test_rollbackversion ... ERROR tests.test_hpm.test_upgradeactionrecord_create_from_data ... ERROR tests.test_hpm.test_upgrade_image ... ERROR tests.test_ipmi.test_target ... ok tests.test_ipmi.test_target_routing ... ok tests.test_ipmi.test_routing ... ok tests.test_ipmi.test_target_set_routing ... ok tests.test_ipmi.test_target_set_routing_from_string ... ok tests.test_ipmi.test_ipmi_send_message_retry ... ok tests.test_ipmi.test_ipmi_send_message_retry_error ... ok tests.test_ipmi.test_ipmi_send_message_with_name ... ok tests.test_ipmi.test_ipmi_send_message_with_name_and_kwargs ... ok tests.test_picmg.test_to_request ... ok tests.test_picmg.test_to_request_function_on ... ok tests.test_picmg.test_to_request_function_off ... ok tests.test_picmg.test_to_request_function_blinking ... ok tests.test_picmg.test_to_request_function_lamp_test ... ok tests.test_sdr.TestSdrCommon.test_invalid_data_length ... ok tests.test_sdr.TestSdrCommon.test_object ... ok tests.test_sdr.TestSdrCompactSensorRecord.test_decode ... ERROR tests.test_sdr.TestSdrCompactSensorRecord.test_invalid_length ... ok tests.test_sdr.TestSdrFruDeviceLocatorRecord.test_decode ... ERROR tests.test_sdr.TestSdrFruDeviceLocatorRecord.test_invalid_length ... ok tests.test_sdr.TestSdrFullSensorRecord.test_convert_complement ... ok tests.test_sdr.TestSdrFullSensorRecord.test_convert_sensor_raw_to_value ... ok tests.test_sdr.TestSdrFullSensorRecord.test_decocde ... ERROR tests.test_sdr.TestSdrFullSensorRecord.test_decode_capabilities ... ok tests.test_sdr.TestSdrFullSensorRecord.test_invalid_length ... ok tests.test_sdr.TestSdrFullSensorRecord.test_linearization ... ok tests.test_sdr.TestSdrFullSensorRecord.test_linearization_key_error ... ok tests.test_sdr.TestSdrManagementControllerDeviceRecord.test_decode ... ERROR tests.test_sdr.TestSdrManagementControllerDeviceRecord.test_invalid_length ... ok tests.test_sdr.test_sdreventonlysensorrecord ... ok tests.test_sel.TestSelEnty.test_from_data ... ok tests.test_sel.TestSelEnty.test_from_data_event_data ... ok tests.test_sel.TestSelEnty.test_from_data_event_direction ... ok tests.test_sel.TestSelEnty.test_from_data_event_type ... ok tests.test_sel.TestSelEnty.test_type_to_string ... ok tests.test_sensor.test_set_sensor_thresholds ... ok tests.test_utils.test_bytebuffer_init_from_list ... ok tests.test_utils.test_bytebuffer_init_from_tuple ... ok tests.test_utils.test_bytebuffer_initi_fromstring ... ok tests.test_utils.test_bytebuffer_push_unsigned_int ... ok tests.test_utils.test_bytebuffer_pop_unsigned_int ... ok tests.test_utils.test_bytebuffer_pop_unsigned_int_error ... ok tests.test_utils.test_bytebuffer_push_string ... ERROR tests.test_utils.test_bytebuffer_pop_string ... ERROR tests.test_utils.test_bytebuffer_tostring ... ERROR tests.test_utils.test_bytebuffer_pop_slice ... ERROR tests.test_utils.test_bytebuffer_pop_slice_error ... ok tests.test_utils.test_chunks ... ok
ERROR: tests.interfaces.test_ipmb.test_header_encode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmb.py", line 27, in test_header_encode data = header.encode() File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmb.py", line 65, in encode return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.interfaces.test_ipmb.test_encode_ipmb_msg
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmb.py", line 51, in test_encode_ipmbmsg eq(encode_ipmb_msg(header, b'\xaa\xbb\xcc'), File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmb.py", line 97, in encode_ipmb_msg msg.fromstring(header.encode()) AttributeError: 'array.array' object has no attribute 'fromstring'
ERROR: tests.interfaces.test_ipmb.test_encode_send_message
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmb.py", line 56, in test_encode_send_message data = encode_send_message(b'\xaa\xbb', 0x12, 0x20, 7, 0x22) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmb.py", line 121, in encode_send_message data = encode_message(req) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.interfaces.test_ipmb.test_encode_bridged_message
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmb.py", line 70, in test_encode_bridged_message data = encode_bridged_message(t.routing, header, payload, seq=0x22) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmb.py", line 149, in encode_bridged_message tx_data = encode_ipmb_msg(header, payload) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmb.py", line 97, in encode_ipmb_msg msg.fromstring(header.encode()) AttributeError: 'array.array' object has no attribute 'fromstring'
ERROR: tests.interfaces.test_ipmb.test_rx_filter
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmb.py", line 103, in test_rx_filter rx_data = encode_ipmb_msg(header_rsp, b'\xaa\xbb\xcc') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmb.py", line 97, in encode_ipmb_msg msg.fromstring(header.encode()) AttributeError: 'array.array' object has no attribute 'fromstring'
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_completion_code_not_ok
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 123, in test_send_and_receive_raw_completion_code_not_ok data = self._interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: cc --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_completion_code_timeout
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 111, in test_send_and_receive_raw_completion_code_timeout data = self._interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: c3 --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_lanplus
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 72, in test_send_and_receive_raw_lanplus interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: 00 --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_no_auth
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 86, in test_send_and_receive_raw_no_auth self._interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: 00 --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_return_value
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 98, in test_send_and_receive_raw_return_value data = self._interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: 00 10 80 01 02 51 bd 98 3a 00 a8 06 00 03 00 00 --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_serial
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 147, in test_send_and_receive_raw_serial interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: 00 --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_ipmitool.TestIpmitool.test_send_and_receive_raw_valid
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_ipmitool.py", line 57, in test_send_and_receive_raw_valid self._interface.send_and_receive_raw(target, 0, 0x6, b'\x01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/ipmitool.py", line 138, in send_and_receive_raw return data.tostring() AttributeError: 'array.array' object has no attribute 'tostring' -------------------- >> begin captured logging << -------------------- pyipmi: DEBUG: IPMI RX: 00 --------------------- >> end captured logging << ---------------------
ERROR: tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_rmcp.py", line 68, in test_ipmimsg_pack pdu = m.pack(None) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/rmcp.py", line 265, in pack pdu += array('B', [data_len]).tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack_with_data
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_rmcp.py", line 85, in test_ipmimsg_pack_with_data data = array.array('B', (1, 2, 3, 4)).tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.interfaces.test_rmcp.TestIpmiMsg.test_ipmimsg_pack_with_session
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/interfaces/test_rmcp.py", line 96, in test_ipmimsg_pack_with_session pdu = m.pack(None) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/interfaces/rmcp.py", line 265, in pack pdu += array('B', [data_len]).tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_chassis.test_getchassisstatus_encode_valid_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_chassis.py", line 11, in test_getchassisstatus_encode_valid_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 367, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_chassis.test_chassiscontrol_encode_valid_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_chassis.py", line 50, in test_chassiscontrol_encode_valid_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_all_disabled_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 21, in test_setbmcglobalenables_encode_all_disabled_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_oem_2_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 34, in test_setbmcglobalenables_encode_enable_oem_2_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_oem_1_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 47, in test_setbmcglobalenables_encode_enable_oem_1_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_oem_0_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 60, in test_setbmcglobalenables_encode_enable_oem_0_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_setbmcglobalenables_encode_enable_receive_queue_interrupt_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 73, in test_setbmcglobalenables_encode_enable_receive_queue_interrupt_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_none_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 124, in test_clearmessageflags_encode_clear_none_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_oem_2_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 136, in test_clearmessageflags_encode_clear_oem_2_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_oem_0_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 148, in test_clearmessageflags_encode_clear_oem_0_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_clearmessageflags_encode_clear_receive_message_queue_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 160, in test_clearmessageflags_encode_clear_receive_message_queue_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_enablemessagechannelreceive_encode_all_off_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 204, in test_enablemessagechannelreceive_encode_all_off_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_enablemessagechannelreceive_encode_channel1_enable_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 212, in test_enablemessagechannelreceive_encode_channel1_enable_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_enablemessagechannelreceive_encode_channel2_enable_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 220, in test_enablemessagechannelreceive_encode_channel2_enable_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_masterwriteread_encode_req_all_zero_read
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 265, in test_masterwriteread_encode_req_all_zero_read data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_masterwriteread_encode_req_for_read
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 276, in test_masterwriteread_encode_req_for_read data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_masterwriteread_encode_req_for_write
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 288, in test_masterwriteread_encode_req_for_write data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_get_channel_authentication_capabilities_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 304, in test_get_channel_authentication_capabilities_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_device_messaging.test_get_session_challenge_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_device_messaging.py", line 334, in test_get_session_challenge_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 370, in _encode
field.encode(self, data)
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 115, in encode
data.push_string(value)
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 77, in push_string
self.array.fromstring(value)
AttributeError: 'array.array' object has no attribute 'fromstring'
ERROR: tests.msgs.test_event.test_seteventreceiver_encode_lun0_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_event.py", line 14, in test_seteventreceiver_encode_lun0_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_event.test_seteventreceiver_encode_lun3_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_event.py", line 22, in test_seteventreceiver_encode_lun3_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_fru.test_writefrudatareq_encode_valid_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_fru.py", line 33, in test_writefrudatareq_encode_valid_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_fru.test_writefrudatareq_encode_valid_req_wo_data
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_fru.py", line 50, in test_writefrudatareq_encode_valid_req_wo_data data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_fru.test_readfrudatareq_encode_valid_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_fru.py", line 85, in test_readfrudatareq_encode_valid_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_fru.test_readfrudatarsp_encode_valid_rsp
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_fru.py", line 114, in test_readfrudatarsp_encode_valid_rsp data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_hpm.test_uploadfirmwareblockreq_encode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_hpm.py", line 14, in test_uploadfirmwareblockreq_encode data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_hpm.test_activatefirmwarereq_encode_valid_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_hpm.py", line 29, in test_activatefirmwarereq_encode_valid_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_hpm.test_activatefirmwarereq_encode_valid_req_wo_optional
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_hpm.py", line 44, in test_activatefirmwarereq_encode_valid_req_wo_optional data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_message.test_string_encode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_message.py", line 49, in test_string_encode byte_buffer = t.encode() File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_message.py", line 17, in encode self.field.encode(self, data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 115, in encode data.push_string(value) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 77, in push_string self.array.fromstring(value) AttributeError: 'array.array' object has no attribute 'fromstring'
ERROR: tests.msgs.test_message.test_string_decode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_message.py", line 55, in test_string_decode t.decode(b'abcdef') File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_message.py", line 22, in decode self.field.decode(self, data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 118, in decode value = data.pop_string(self.length) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 82, in pop_string return string.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_picmg.test_clear_activation_lock_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_picmg.py", line 77, in test_clear_activation_lock_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_picmg.test_set_activation_lock_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_picmg.py", line 86, in test_set_activation_lock_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_picmg.test_clear_deactivation_lock_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_picmg.py", line 95, in test_clear_deactivation_lock_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_picmg.test_set_deactivation_lock_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_picmg.py", line 104, in test_set_deactivation_lock_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_getsdrrepositoryinfo_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 14, in test_getsdrrepositoryinfo_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 367, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_getsdrrepositoryallocationinfo_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 37, in test_getsdrrepositoryallocationinfo_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 367, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_reservesdrrepository_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 54, in test_reservesdrrepository_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 367, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_getsdr_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 71, in test_getsdr_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_addsdr_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 86, in test_addsdr_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_partialaddsdr_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 104, in test_partialaddsdr_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_deletesdr_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 119, in test_deletesdr_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sdr.test_clearsdrrepository_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sdr.py", line 134, in test_clearsdrrepository_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sel.test_getselentry_encode_valid_rsp
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sel.py", line 38, in test_getselentry_encode_valid_rsp data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_getdevicesdrinfo_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 14, in test_getdevicesdrinfo_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 367, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_getdevicesdr_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 49, in test_getdevicesdr_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorhysteresis_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 66, in test_setsensorhysteresis_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_getsensorhysteresis_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 73, in test_getsensorhysteresis_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_unr
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 90, in test_setsensorthresholds_encode_req_set_unr data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_ucr
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 99, in test_setsensorthresholds_encode_req_set_ucr data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_unc
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 108, in test_setsensorthresholds_encode_req_set_unc data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_lnr
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 117, in test_setsensorthresholds_encode_req_set_lnr data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_lcr
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 126, in test_setsensorthresholds_encode_req_set_lcr data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensorthresholds_encode_req_set_lnc
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 135, in test_setsensorthresholds_encode_req_set_lnc data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensoreventenable_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 145, in test_setsensoreventenable_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensoreventenable_encode_cfg_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 155, in test_setsensoreventenable_encode_cfg_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensoreventenable_encode_scanning_enabled_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 165, in test_setsensoreventenable_encode_scanning_enabled_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensoreventenable_encode_event_enabled_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 175, in test_setsensoreventenable_encode_event_enabled_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensoreventenable_encode_byte3_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 186, in test_setsensoreventenable_encode_byte3_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_setsensoreventenable_encode_byte34_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 198, in test_setsensoreventenable_encode_byte34_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_getsensoreventenable_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 205, in test_getsensoreventenable_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.msgs.test_sensor.test_rearmsensorevents_encode_req
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/msgs/test_sensor.py", line 256, in test_rearmsensorevents_encode_req data = encode_message(m) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 402, in
encode_message = lambda m: m._encode()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/msgs/message.py", line 371, in _encode
return data.tostring()
File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring
return self.array.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_bmc.test_deviceid_object
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_bmc.py", line 31, in test_deviceid_object dev = DeviceId(rsp) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/state.py", line 20, in init ResponseDecoder.init(self, rsp) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/state.py", line 11, in init self._from_response(rsp) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/bmc.py", line 141, in _from_response self.fw_revision = VersionField( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_bmc.test_deviceid_object_with_aux
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_bmc.py", line 49, in test_deviceid_object_with_aux device_id = DeviceId(msg) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/state.py", line 20, in init ResponseDecoder.init(self, rsp) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/state.py", line 11, in init self._from_response(rsp) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/bmc.py", line 141, in _from_response self.fw_revision = VersionField( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_fields.test_versionfield_object
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_fields.py", line 10, in test_versionfield_object version = VersionField([1, 0x99]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.TestComponentProperty.test_currentversion
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 30, in test_currentversion prop = ComponentProperty().from_data(PROPERTY_CURRENT_VERSION, b'\x01\x99') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 424, in from_data return ComponentPropertyCurrentVersion(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 414, in init self._from_rsp_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 471, in _from_rsp_data self.version = VersionField(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.TestComponentProperty.test_deferredversion
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 60, in test_deferredversion prop = ComponentProperty().from_data( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 430, in from_data return ComponentPropertyDeferredVersion(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 414, in init self._from_rsp_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 491, in _from_rsp_data self.version = VersionField(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.TestComponentProperty.test_descriptionstring
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 38, in test_descriptionstring prop = ComponentProperty().from_data(PROPERTY_DESCRIPTION_STRING, File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 426, in from_data return ComponentPropertyDescriptionString(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 414, in init self._from_rsp_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 477, in _from_rsp_data self.description = py3dec_unic_bytes_fix(array('B', data).tostring()) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.TestComponentProperty.test_descriptionstring_with_trailinge_zeros
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 49, in test_descriptionstring_with_trailinge_zeros prop = ComponentProperty().from_data(PROPERTY_DESCRIPTION_STRING, File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 426, in from_data return ComponentPropertyDescriptionString(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 414, in init self._from_rsp_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 477, in _from_rsp_data self.description = py3dec_unic_bytes_fix(array('B', data).tostring()) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.TestComponentProperty.test_rollbackversion
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 55, in test_rollbackversion prop = ComponentProperty().from_data( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 428, in from_data return ComponentPropertyRollbackVersion(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 414, in init self._from_rsp_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 485, in _from_rsp_data self.version = VersionField(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.test_upgradeactionrecord_create_from_data
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 75, in test_upgradeactionrecord_create_from_data UpgradeActionRecord.create_from_data( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 626, in create_from_data return UpgradeActionRecordUploadForUpgrade(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 654, in init VersionField( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_hpm.test_upgrade_image
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_hpm.py", line 93, in test_upgrade_image image = UpgradeImage(hpm_file) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 684, in init self._from_file(filename) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 715, in _from_file self.header = UpgradeImageHeaderRecord(file_data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 553, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/hpm.py", line 571, in _from_data VersionField(data[24:24 + VersionField.VERSION_FIELD_LEN]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 22, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 29, in _from_data self.version = self._decode_data(data[0:2]) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/fields.py", line 43, in _decode_data self.minor = int(data[1:2].tostring().decode('bcd+')) AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_sdr.TestSdrCompactSensorRecord.test_decode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_sdr.py", line 203, in test_decode SdrCompactSensorRecord(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 491, in init super(SdrCompactSensorRecord, self).init(data, next_id) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 194, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 525, in _from_data self._device_id_string(buffer) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 226, in _device_id_string buffer.pop_string(self.device_id_string_type_length & 0x3f) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 82, in pop_string return string.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_sdr.TestSdrFruDeviceLocatorRecord.test_decode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_sdr.py", line 223, in test_decode SdrFruDeviceLocator(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 562, in init super(SdrFruDeviceLocator, self).init(data, next_id) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 194, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 583, in _from_data self._device_id_string(buffer) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 226, in _device_id_string buffer.pop_string(self.device_id_string_type_length & 0x3f) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 82, in pop_string return string.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_sdr.TestSdrFullSensorRecord.test_decocde
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_sdr.py", line 171, in test_decocde sdr = SdrFullSensorRecord(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 263, in init super(SdrFullSensorRecord, self).init(data, next_id) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 194, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 483, in _from_data self._device_id_string(buffer) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 226, in _device_id_string buffer.pop_string(self.device_id_string_type_length & 0x3f) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 82, in pop_string return string.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_sdr.TestSdrManagementControllerDeviceRecord.test_decode
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_sdr.py", line 237, in test_decode sdr = SdrManagementControllerDeviceLocator(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 591, in init super(SdrManagementControllerDeviceLocator, self).init( File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 194, in init self._from_data(data) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 612, in _from_data self._device_id_string(buffer) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/sdr.py", line 226, in _device_id_string buffer.pop_string(self.device_id_string_type_length & 0x3f) File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 82, in pop_string return string.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_utils.test_bytebuffer_push_string
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_utils.py", line 61, in test_bytebuffer_push_string buf.push_string(b'0123') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 77, in push_string self.array.fromstring(value) AttributeError: 'array.array' object has no attribute 'fromstring'
ERROR: tests.test_utils.test_bytebuffer_pop_string
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_utils.py", line 75, in test_bytebuffer_popstring eq(buf.pop_string(2), b'01') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 82, in pop_string return string.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_utils.test_bytebuffer_tostring
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_utils.py", line 81, in test_bytebuffertostring eq(buf.tostring(), b'0123') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring return self.array.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
ERROR: tests.test_utils.test_bytebuffer_pop_slice
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILD/python-ipmi-0.4.2/tests/test_utils.py", line 87, in test_bytebuffer_popslice eq(buf.tostring(), b'123') File "/builddir/build/BUILD/python-ipmi-0.4.2/pyipmi/utils.py", line 94, in tostring return self.array.tostring() AttributeError: 'array.array' object has no attribute 'tostring'
Ran 245 tests in 1.112s FAILED (errors=94) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.84h9mv (%check) Bad exit status from /var/tmp/rpm-tmp.84h9mv (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 739, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed:
/usr/bin/systemd-nspawn -q -M 8eae51f77cab4a5281e1b1de9e1d3d5a -D /var/lib/mock/1256358-fedora-rawhide-x86_64-1582884944.310431/root -a --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.zksoot47:/etc/resolv.conf --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=en_US.UTF-8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-ipmi.spec