Navigation Menu

Skip to content

Commit

Permalink
Fix sip coverage test to skip constructors of nested classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Dec 18, 2015
1 parent 9e14f09 commit 6ffec81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/python/test_qgssipcoverage.py
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6ffec81

Please sign in to comment.