From b27e1ea4b712d3b332f9eaec3c4b218fdf42eca3 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 11 Jul 2014 21:46:51 -0400 Subject: Mark a few more lines with 'no cover' - missed them the first time through. The rest should have test cases added. --- markdown/blockprocessors.py | 2 +- markdown/inlinepatterns.py | 8 ++++---- 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 -- cgit v1.2.3