Skip to content

Commit 2623abc

Browse files
committed
Fix detection of python related notes in Sip coverage test
In certain cases test was not correctly detecting "not available in Python bindings" notes
1 parent 57f5fba commit 2623abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/src/python/utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def elemIsBindableMember(self, elem):
576576
for p in detailed_sec.getiterator('para'):
577577
for s in p.getiterator('simplesect'):
578578
for ps in s.getiterator('para'):
579-
if 'python' in ps.text.lower():
579+
if ps.text and 'python' in ps.text.lower():
580580
return False
581581
except:
582582
pass

0 commit comments

Comments
 (0)