Skip to content

Commit 6ffec81

Browse files
author
Hugo Mercier
committedDec 18, 2015
Fix sip coverage test to skip constructors of nested classes
1 parent 9e14f09 commit 6ffec81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎tests/src/python/test_qgssipcoverage.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# (changes which lower this threshold are welcomed though!)
3939

4040
ACCEPTABLE_MISSING_CLASSES = 69
41-
ACCEPTABLE_MISSING_MEMBERS = 264
41+
ACCEPTABLE_MISSING_MEMBERS = 245
4242

4343

4444
class TestQgsSipCoverage(TestCase):
@@ -70,6 +70,9 @@ def testCoverage(self):
7070
for m in parser.bindable_members:
7171
if m[0] in bound_objects:
7272
obj = bound_objects[m[0]]
73+
if "::" in m[0] and m[0].split("::")[1] == m[1]:
74+
# skip constructors of nested classes
75+
continue
7376

7477
# try two different methods of checking for member existence
7578
try:

0 commit comments

Comments
 (0)
Please sign in to comment.