summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-06-20 19:27:21 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-16 00:28:55 -0300
commit1e7ec9dd16fe808400550f68fc69293ff2623bee (patch)
tree277d778b3df9bd4bcd8e2d5583b970baeed2c84e
parent244f41402f9541099089d1118502255d5ade8466 (diff)
pyolian: full_inherit must recurse parent too
Test Plan: run tests Reviewers: segfaultxavi, herb, DaveMDS Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10420
-rw-r--r--src/scripts/pyolian/eolian.py1
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py
index 9ab6abd01e..31f4f06f44 100644
--- a/src/scripts/pyolian/eolian.py
+++ b/src/scripts/pyolian/eolian.py
@@ -739,6 +739,7 @@ class Class(Object):
739 def do_class_recursive(cls): 739 def do_class_recursive(cls):
740 if cls.parent: 740 if cls.parent:
741 li.append(cls.parent) 741 li.append(cls.parent)
742 do_class_recursive(cls.parent)
742 for other in cls.extensions: 743 for other in cls.extensions:
743 if other not in li: 744 if other not in li:
744 li.append(other) 745 li.append(other)
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 4aa4588640..b6090c661e 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -699,3 +699,8 @@ class TestEolianExpression(object):
699 # exp.binary_operator # TODO find a better test (only works for BINARY expr) 699 # exp.binary_operator # TODO find a better test (only works for BINARY expr)
700 # exp.binary_lhs # TODO find a better test (only works for BINARY expr) 700 # exp.binary_lhs # TODO find a better test (only works for BINARY expr)
701 # exp.binary_rhs # TODO find a better test (only works for BINARY expr) 701 # exp.binary_rhs # TODO find a better test (only works for BINARY expr)
702
703class TestEolianInherits(object):
704 def test_inherits_full(self, eolian_db):
705 cls = eolian_db.class_by_name_get('Efl.Ui.Widget')
706 assert 'Efl.Object' in cls.inherits_full