From 215d0b797b76a8ad107f11dcbda8dc2ba8de47a3 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 28 Mar 2017 23:54:37 -0700 Subject: [PATCH] mark this block as not coverage as it won't even in unit tests.. --- pasn1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pasn1.py b/pasn1.py index 2c541be..915d948 100644 --- a/pasn1.py +++ b/pasn1.py @@ -482,7 +482,7 @@ def genfailures(obj): raise ValueError except (ValueError, KeyError, IndexError, TypeError): pass - else: + else: # pragma: no cover raise AssertionError('uncaught modification: %s, byte %d, orig: %02x' % (ts.encode('hex'), i, ord(s[i]))) class TestCode(unittest.TestCase):