Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stdnum/iban.py2
-rw-r--r--stdnum/numdb.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/stdnum/iban.py b/stdnum/iban.py
index f5b66fc..a8e1ea8 100644
--- a/stdnum/iban.py
+++ b/stdnum/iban.py
@@ -72,7 +72,7 @@ def _matches_structure(number, structure):
elif code == 'a' and not number[start:start + length].isalpha():
return False
elif code == 'c' and not number[start:start + length].isalnum():
- return False # should not happen due to checksum check
+ return False # pragma: no cover (due to checksum check)
start += length
# the whole number should be parsed now
return start == len(number)
diff --git a/stdnum/numdb.py b/stdnum/numdb.py
index 2580b09..54ae1bc 100644
--- a/stdnum/numdb.py
+++ b/stdnum/numdb.py
@@ -132,7 +132,7 @@ def _parse(fp):
for line in fp:
# ignore comments
if line[0] == '#' or line.strip() == '':
- continue
+ continue # pragma: no cover (optimisation takes it out)
# any other line should parse
match = _line_re.search(line)
indent = len(match.group('indent'))