From 5d14fff49aa6c43091b2aaadc0944c7138b8efb0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 2 Dec 2015 17:47:12 +0100 Subject: 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 """ -- cgit v1.3