aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2014-08-22 14:46:12 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2014-08-22 14:46:12 -0400
commit091553a3571a085a8bb93fbd89cadda4a1071d7a (patch)
tree33111b13d4b1bbe07c4d96679722e41a4db5e22d
parent4c57563d920de58cacf248702a9f347f44c8793b (diff)
downloadmarkdown-091553a3571a085a8bb93fbd89cadda4a1071d7a.tar.gz
markdown-091553a3571a085a8bb93fbd89cadda4a1071d7a.tar.bz2
markdown-091553a3571a085a8bb93fbd89cadda4a1071d7a.zip
Include __main__.py in coverage.
-rw-r--r--.coveragerc1
-rw-r--r--markdown/__main__.py6
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]`.