avocado-vt icon indicating copy to clipboard operation
avocado-vt copied to clipboard

pylint checks error after python upgrade to 3.6+ in travis CI

Open chunfuwen opened this issue 4 years ago • 0 comments

After python upgrade to 3.6+ version, if keep the same disable-int items, quite numbers of errors are observed as below. Hopefully contributor can take efforts to take a look,and see whether it can be fixed up accordingly. complete details can be found: https://travis-ci.org/github/avocado-framework/avocado-vt/jobs/737935974 Moreover, those logs can also be gotten by running command: inspekt checkall --disable-lint W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E1003,W605 --disable-style W605,W606,E501,E265,W601,E402,E722,E741 --exclude avocado-libs --no-license-check


inspekt checkall --disable-lint W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E1003,W605 --disable-style W605,W606,E501,E265,W601,E402,E722,E741 --exclude avocado-libs --no-license-check PEP8 disabled: W605,W606,E501,E265,W601,E402,E722,E741 Pylint disabled: W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E1003,W605 Pylint enabled : W0611 License check: disabled ************* Module avocado-vt.selftests.unit.test_propcan E0001:276,0: : invalid syntax (, line 276) ************* Module avocado-vt.selftests.unit.test_qemu_devices E1111:796,8: Container.test_qdev_functional: Assigning result of a function call, where the function has no return E1111:805,8: Container.test_qdev_functional: Assigning result of a function call, where the function has no return ************* Module cache_populate E0611: 7,0: : No name 'Github' in module 'github' ************* Module label_issues E0611: 6,0: : No name 'Github' in module 'github' ************* Module example E0611: 9,0: : No name 'Github' in module 'github' ************* Module pulls_applied E0611: 7,0: : No name 'Github' in module 'github' ************* Module unassigned_issues E0611: 6,0: : No name 'Github' in module 'github' ************* Module stale_pulls E0611: 7,0: : No name 'Github' in module 'github' ************* Module avocado-vt.virttest.qemu_storage E1135:1623,30: QemuImg.dd: Value 'meta' doesn't support membership test E1137:1625,12: QemuImg.dd: 'meta' does not support item assignment ************* Module avocado-vt.virttest.propcan E1133:292,19: PropCan.len: Non-iterable value self.all_slots is used in an iterating context E1133:317,31: PropCan.keys: Non-iterable value self.all_slots is used in an iterating context ************* Module avocado-vt.virttest.utils_net I1101:3457,14: get_ip_address_by_interface: Module 'netifaces' has no 'AF_INET6' member, but source is unavailable. Consider adding this module to extension-pkg-whitelist if you want to perform analysis based on run-time introspection of living objects. I1101:3460,14: get_ip_address_by_interface: Module 'netifaces' has no 'AF_INET' member, but source is unavailable. Consider adding this module to extension-pkg-whitelist if you want to perform analysis based on run-time introspection of living objects. I1101:3462,11: get_ip_address_by_interface: Module 'netifaces' has no 'ifaddresses' member, but source is unavailable. Consider adding this module to extension-pkg-whitelist if you want to perform analysis based on run-time introspection of living objects. ************* Module avocado-vt.virttest.graphical_console E1136:483,25: QMPConsole._translate_pos_qmp: Value 'self._pointer_pos' is unsubscriptable E1136:484,25: QMPConsole._translate_pos_qmp: Value 'self._pointer_pos' is unsubscriptable ************* Module avocado-vt.virttest.element_tree E0301:965,8: iterparse.iter: iter returns non-iterator ************* Module avocado-vt.virttest.staging.lv_utils E1135:355,46: lv_revert: Value 'ex' doesn't support membership test E1135:358,71: lv_revert: Value 'ex' doesn't support membership test E1135:363,46: lv_revert: Value 'ex' doesn't support membership test ************* Module avocado-vt.virttest.remote_commander.remote_runner E1111:355,12: CmdSlave.call: Assigning result of a function call, where the function has no return E1111:360,12: CmdSlave.call: Assigning result of a function call, where the function has no return E1111:363,12: CmdSlave.call: Assigning result of a function call, where the function has no return ************* Module avocado-vt.virttest.libvirt_xml.vm_xml E1133:2519,20: VMCPUTuneXML.init: Non-iterable value self.all_slots is used in an iterating context ************* Module avocado-vt.virttest.libvirt_xml.devices.disk E1133:351,24: Disk.IOTune.init: Non-iterable value self.all_slots is used in an iterating context ************* Module avocado-vt.virttest.utils_test.qemu.migration E0633:909,16: MultihostMigrationFd._connect_to_server: Attempting to unpack a non-sequence ************* Module avocado-vt.virttest.qemu_devices.qdevices E1111:259,16: QBaseDevice.hotplug: Assigning result of a function call, where the function has no return E1111:289,16: QBaseDevice.unplug: Assigning result of a function call, where the function has no return The command "inspekt checkall --disable-lint W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E1003,W605 --disable-style W605,W606,E501,E265,W601,E402,E722,E741 --exclude avocado-libs --no-license-check" exited with 2.

chunfuwen avatar Oct 23 '20 13:10 chunfuwen