diff options
author | Waylan Limberg <waylan@gmail.com> | 2014-07-11 21:46:51 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2014-07-11 21:46:51 -0400 |
commit | b27e1ea4b712d3b332f9eaec3c4b218fdf42eca3 (patch) | |
tree | 4ca47f5a78d6b94978ced6c71ce686a5bb2b8033 | |
parent | 16de7ed9de3d6aa464acd4a359a2e84a339768ba (diff) | |
download | markdown-b27e1ea4b712d3b332f9eaec3c4b218fdf42eca3.tar.gz markdown-b27e1ea4b712d3b332f9eaec3c4b218fdf42eca3.tar.bz2 markdown-b27e1ea4b712d3b332f9eaec3c4b218fdf42eca3.zip |
Mark a few more lines with 'no cover' - missed them the first time through. The rest should have test cases added.
-rw-r--r-- | markdown/blockprocessors.py | 2 | ||||
-rw-r--r-- | markdown/inlinepatterns.py | 8 | ||||
-rw-r--r-- | markdown/serializers.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index e8f6750..08fbcf8 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -433,7 +433,7 @@ class HashHeaderProcessor(BlockProcessor): if after: # Insert remaining lines as first block for future parsing. blocks.insert(0, after) - else: + else: #pragma: no cover # This should never happen, but just in case... logger.warn("We've got a problem header: %r" % block) diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py index 9fed20d..dd06dff 100644 --- a/markdown/inlinepatterns.py +++ b/markdown/inlinepatterns.py @@ -46,13 +46,13 @@ from __future__ import unicode_literals from . import util from . import odict import re -try: +try: #pragma: no cover from urllib.parse import urlparse, urlunparse -except ImportError: +except ImportError: #pragma: no cover from urlparse import urlparse, urlunparse -try: +try: #pragma: no cover from html import entities -except ImportError: +except ImportError: #pragma: no cover import htmlentitydefs as entities diff --git a/markdown/serializers.py b/markdown/serializers.py index 72fcef6..f53ae31 100644 --- a/markdown/serializers.py +++ b/markdown/serializers.py @@ -44,7 +44,7 @@ ElementTree = util.etree.ElementTree QName = util.etree.QName if hasattr(util.etree, 'test_comment'): #pragma: no cover Comment = util.etree.test_comment -else: #prgama: no cover +else: #pragma: no cover Comment = util.etree.Comment PI = util.etree.PI ProcessingInstruction = util.etree.ProcessingInstruction |