From 091553a3571a085a8bb93fbd89cadda4a1071d7a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 22 Aug 2014 14:46:12 -0400 Subject: Include __main__.py in coverage. --- .coveragerc | 1 - markdown/__main__.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.coveragerc b/.coveragerc index e84731a..11e6453 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,6 +1,5 @@ [run] omit= markdown/__version__.py - markdown/__main__.py *site-packages* tests/* diff --git a/markdown/__main__.py b/markdown/__main__.py index c8a9659..60706b1 100644 --- a/markdown/__main__.py +++ b/markdown/__main__.py @@ -10,7 +10,7 @@ import optparse import codecs try: import yaml -except ImportError: +except ImportError: #pragma: no cover import json as yaml import logging @@ -92,7 +92,7 @@ def parse_options(args=None, values=None): 'output_format': options.output_format, 'lazy_ol': options.lazy_ol}, options.verbose -def run(): +def run(): #pragma: no cover """Run Markdown from the command line.""" # Parse options and adjust logging level if necessary @@ -104,7 +104,7 @@ def run(): # Run markdown.markdownFromFile(**options) -if __name__ == '__main__': +if __name__ == '__main__': #pragma: no cover # Support running module as a commandline command. # Python 2.5 & 2.6 do: `python -m markdown.__main__ [options] [args]`. # Python 2.7 & 3.x do: `python -m markdown [options] [args]`. -- cgit v1.2.3