Skip to content

Commit

Permalink
Followup b5794b2, fix calculation of acceptable limits
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 8, 2015
1 parent 26dbb42 commit b6717b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/python/test_qgssipcoverage.py
Expand Up @@ -37,7 +37,7 @@
# DON'T RAISE THIS THRESHOLD!!!
# (changes which lower this threshold are welcomed though!)

ACCEPTABLE_MISSING_CLASSES = 198
ACCEPTABLE_MISSING_CLASSES = 196
ACCEPTABLE_MISSING_MEMBERS = 530


Expand Down Expand Up @@ -109,9 +109,9 @@ def testCoverage(self):

if __name__ == '__main__':
if "MISSING_SIP_CLASSES" in os.environ:
ACCEPTABLE_MISSING_CLASSES -= int(os.environ['MISSING_SIP_CLASSES'])
ACCEPTABLE_MISSING_CLASSES += int(os.environ['MISSING_SIP_CLASSES'])

if "MISSING_SIP_MEMBERS" in os.environ:
ACCEPTABLE_MISSING_MEMBERS -= int(os.environ['MISSING_SIP_MEMBERS'])
ACCEPTABLE_MISSING_MEMBERS += int(os.environ['MISSING_SIP_MEMBERS'])

unittest.main()

0 comments on commit b6717b6

Please sign in to comment.