[Pkg-privacy-commits] [mat] 33/68: Add some pragma to avoid testing some functions

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

sascha-guest pushed a commit to branch master
in repository mat.

commit 5d14fff49aa6c43091b2aaadc0944c7138b8efb0
Author: jvoisin <julien.voisin at dustri.org>
Date:   Wed Dec 2 17:47:12 2015 +0100

    Add some pragma to avoid testing some functions
---
 libmat/mat.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libmat/mat.py b/libmat/mat.py
index 2634cc3..1dc51d9 100644
--- a/libmat/mat.py
+++ b/libmat/mat.py
@@ -28,7 +28,7 @@ logging.basicConfig(filename=fname, level=LOGGING_LEVEL)
 import strippers  # this is loaded here because we need LOGGING_LEVEL
 
 
-def get_logo():
+def get_logo():  # pragma: no cover
     """ Return the path to the logo
     """
     if os.path.isfile(os.path.join(os.path.curdir, 'data/mat.png')):
@@ -39,7 +39,7 @@ def get_logo():
         return '/usr/local/share/pixmaps/mat.png'
 
 
-def get_datafile_path(filename):
+def get_datafile_path(filename):  # pragma: no cover
     """ Return the path to $filename
     :param string filename:
     """
@@ -50,7 +50,7 @@ def get_datafile_path(filename):
             return filepath
 
 
-def list_supported_formats():
+def list_supported_formats():  # pragma: no cover
     """ Return a list of all locally supported fileformat.
         It parses that FORMATS file, and removes locally
         non-supported formats.
@@ -70,7 +70,7 @@ def list_supported_formats():
     return localy_supported
 
 
-class XMLParser(xml.sax.handler.ContentHandler):
+class XMLParser(xml.sax.handler.ContentHandler):  # pragma: no cover
     """ Parse the supported format xml, and return a corresponding
         list of dict
     """

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git



More information about the Pkg-privacy-commits mailing list