Skip to content
Snippets Groups Projects
Commit 4b37365b authored by jkerdreu's avatar jkerdreu
Browse files

update from unittests

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2797 b32b6428-25c9-4566-ad07-03861ab6144f
parent 85d6eb0e
No related branches found
No related tags found
No related merge requests found
......@@ -296,10 +296,10 @@ def search_action(msg, device):
def get_args_method(method):
""" return the list on arguments for a given python method """
spec = inspect.getargspec(method)
spec = inspect.getfullargspec(method)
try:
spec.args.remove('self')
except:
except Exception:
pass
return spec.args
......
......@@ -51,7 +51,7 @@ class Attribute(object):
logger.debug("Attr change %s %s=%s" % (self.device.address,self.name,value))
self.__value = value
def __repr__(self):
def __repr__(self): # pragma: no cover
return f"<{self.__module__}.Attribute {self.name} at 0x{id(self):x}>"
......@@ -86,8 +86,8 @@ class Device(object):
def __init__(self,dev_type,addr=None,engine=None):
# xAAL internal attributes for a device
self.__dev_type = dev_type # xaal dev_type
self.__address = addr # xaal addr
self.dev_type = dev_type # xaal dev_type
self.address = addr # xaal addr
self.group_id = None # group devices
self.vendor_id = None # vendor ID ie : ACME
self.product_id = None # product ID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment