diff options
author | Waylan Limberg <waylan@gmail.com> | 2014-07-11 21:24:30 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2014-07-11 21:24:30 -0400 |
commit | 7d728afc3a684afadc7fa5c4672811ac0cc2fa98 (patch) | |
tree | 25e65c3520c2f7760d48a33ed7bc2322feb3cc59 /markdown/util.py | |
parent | df170411f369d20f85a4718698cdff100271b587 (diff) | |
download | markdown-7d728afc3a684afadc7fa5c4672811ac0cc2fa98.tar.gz markdown-7d728afc3a684afadc7fa5c4672811ac0cc2fa98.tar.bz2 markdown-7d728afc3a684afadc7fa5c4672811ac0cc2fa98.zip |
Marked a bunch of lines as 'no cover'. Coverage at 91%
Diffstat (limited to 'markdown/util.py')
-rw-r--r-- | markdown/util.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/markdown/util.py b/markdown/util.py index edb2588..cdad775 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -10,11 +10,11 @@ Python 3 Stuff """ PY3 = sys.version_info[0] == 3 -if PY3: +if PY3: #pragma: no cover string_type = str text_type = str int2str = chr -else: +else: #pragma: no cover string_type = basestring text_type = unicode int2str = unichr @@ -58,14 +58,15 @@ RTL_BIDI_RANGES = ( ('\u0590', '\u07FF'), # Extensions should use "markdown.util.etree" instead of "etree" (or do `from # markdown.util import etree`). Do not import it by yourself. -try: # Is the C implementation of ElementTree available? +try: #pragma: no cover + # Is the C implementation of ElementTree available? import xml.etree.cElementTree as etree from xml.etree.ElementTree import Comment # Serializers (including ours) test with non-c Comment etree.test_comment = Comment if etree.VERSION < "1.0.5": raise RuntimeError("cElementTree version 1.0.5 or higher is required.") -except (ImportError, RuntimeError): +except (ImportError, RuntimeError): #pragma: no cover # Use the Python implementation of ElementTree? import xml.etree.ElementTree as etree if etree.VERSION < "1.1": |