Skip to content

Commit e640e3b

Browse files
committed
add "pragma: no cover" statements to code that isn't expected to be covered
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@156 9dea7c4f-944c-4273-ac1a-574ede026edc
1 parent b561d59 commit e640e3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdnum/iban.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _matches_structure(number, structure):
7272
elif code == 'a' and not number[start:start + length].isalpha():
7373
return False
7474
elif code == 'c' and not number[start:start + length].isalnum():
75-
return False # should not happen due to checksum check
75+
return False # pragma: no cover (due to checksum check)
7676
start += length
7777
# the whole number should be parsed now
7878
return start == len(number)

stdnum/numdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def _parse(fp):
132132
for line in fp:
133133
# ignore comments
134134
if line[0] == '#' or line.strip() == '':
135-
continue
135+
continue # pragma: no cover (optimisation takes it out)
136136
# any other line should parse
137137
match = _line_re.search(line)
138138
indent = len(match.group('indent'))

0 commit comments

Comments
 (0)