Skip to content

Commit

Permalink
coverage pragma added to skip __main__ from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hootnot committed Feb 29, 2016
1 parent 4d05b4b commit 20c3c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postcodepy/postcodepy.py
Expand Up @@ -222,7 +222,7 @@ def __init__(self, exceptionId, response_data=None):


# ----------------------------------------------------------------------
if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
import sys
import os
# First and third are OK, the 2nd is not OK and raises an Exception
Expand Down

0 comments on commit 20c3c97

Please sign in to comment.