Skip to content
Permalink
Browse files

Fix sip coverage test to skip constructors of nested classes

  • Loading branch information
mhugo committed Dec 14, 2015
1 parent 9e14f09 commit 6ffec81b53ee34bb2f1681ed1bc77d8a2bb5153d
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/src/python/test_qgssipcoverage.py
@@ -38,7 +38,7 @@
# (changes which lower this threshold are welcomed though!)

ACCEPTABLE_MISSING_CLASSES = 69
ACCEPTABLE_MISSING_MEMBERS = 264
ACCEPTABLE_MISSING_MEMBERS = 245


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

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

0 comments on commit 6ffec81

Please sign in to comment.
You can’t perform that action at this time.