From ebc72c9b5f34d4b17180a9e6936ba7edad030bdc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 28 Jul 2016 10:50:14 +0200 Subject: [PATCH] Fix TestRemoveBlankTarget.test_no_link --- tests/unit/browser/webkit/test_webelem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/browser/webkit/test_webelem.py b/tests/unit/browser/webkit/test_webelem.py index bfe1db224..f4309bae0 100644 --- a/tests/unit/browser/webkit/test_webelem.py +++ b/tests/unit/browser/webkit/test_webelem.py @@ -402,7 +402,7 @@ class TestRemoveBlankTarget: elem = [None] * depth elem[0] = get_webelem(tagname='div') for i in range(1, depth): - elem[i] = get_webelem(tagname='div', parent=elem[i-1]) + elem[i] = get_webelem(tagname='div', parent=elem[i-1]._elem) elem[i]._elem.encloseWith(elem[i-1]._elem) elem[-1].remove_blank_target() for i in range(depth):