Fix failing test_basedefinition_type
This commit is contained in:
1 parent
3caebcb5aa
commit
f791e96d9d
1 file changed
+2
@@ -133,6 +133,8 @@ class BaseDefinition(object):
|
||||
stripped = self.definition
|
||||
if isinstance(self.definition, er.InstanceElement):
|
||||
stripped = self.definition.var
|
||||
if isinstance(stripped, pr.Name):
|
||||
stripped = stripped.parent
|
||||
return type(stripped).__name__.lower()
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user