Commit 0a3d1131 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[test] Explicitly lenght of lxml element

Avoids FutureWarning: The behavior of this method will change in future
versions. Use specific 'len(elem)' or 'elem is not None' test instead.
parent c952e0143549
......@@ -59,7 +59,7 @@ class SEDAHTMLExportFuncTC(SEDAExportFuncTCMixIn, XmlTestMixin, CubicWebTC):
el_def = {}
for span in self.xpath(div, 'span'):
if span:
if len(span):
value = etree.tostring(span[0])
value = span.text
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment