summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-26 11:55:01 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-26 12:40:32 -0300
commit0acc840f1970d60b1c610a1d5b83e17abd49f17f (patch)
treea03f4790ae9f18037b86f1f714be7876b80a254e /src/scripts
parent11094aeaaf001241fb2d5bc8e74e23e8db944a2d (diff)
pyolian: full_inherit must recurse parent too
Test Plan: run tests Reviewers: segfaultxavi, herb, DaveMDS, felipealmeida Reviewed By: felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10420
Diffstat (limited to 'src/scripts')
-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