aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Cummings <jcummings2@users.sf.net>2013-06-21 13:57:14 -0500
committerJohn Cummings <jcummings2@users.sf.net>2013-06-24 17:32:17 +0200
commit7d56c8e1d3025edb967906d9481075c38290574c (patch)
tree36aeeedb24a06041bd23fd2ae48316a708db9799 /tests
parentb137af6d67c65b7e0e362acbdfc0cce0a321e90c (diff)
Fix bug introduced when recursive_invalidate was added.
If a Python object is passed to recursive_invalidate and is a sequence, each item in the sequence is invalidated Add unit test for recursive invalidate of a sequence Change-Id: I70834f8e027bd17a04c0e443bc7d584d1fde26c1 Reviewed-by: John Ehresman <jpe@wingware.com> Reviewed-by: John Cummings <jcummings2@users.sf.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/samplebinding/objecttype_test.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/samplebinding/objecttype_test.py b/tests/samplebinding/objecttype_test.py
index 6e24ba9db..57947e839 100644
--- a/tests/samplebinding/objecttype_test.py
+++ b/tests/samplebinding/objecttype_test.py
@@ -86,6 +86,20 @@ class ObjectTypeTest(unittest.TestCase):
shiboken.invalidate(parent)
+ def testNextInFocusChainCycleList(self):
+ '''As above but in for a list of objects'''
+ parents = []
+ children = []
+ focus_chains = []
+ for i in range(10):
+ parent = ObjectType()
+ child = ObjectType(parent)
+ next_focus = child.nextInFocusChain()
+ parents.append(parent)
+ children.append(child)
+ focus_chains.append(next_focus)
+
+ shiboken.invalidate(parents)
+
if __name__ == '__main__':
unittest.main()
-