Add path assertion to check_coverage.py.
https://bitbucket.org/ned/coveragepy/issues/235 confuses me - maybe the XML format will change in the future to not contain the full filename? To make sure I'll add this assertion, then I'll notice.
This commit is contained in:
parent
daa6f8276f
commit
907a4b0e5e
@ -70,6 +70,7 @@ def main():
|
||||
assert 0 <= line_cov <= 100, line_cov
|
||||
assert 0 <= branch_cov <= 100, branch_cov
|
||||
assert '\\' not in filename, filename
|
||||
assert '/' in filename, filename
|
||||
|
||||
if branch_cov < 100 and klass.find('./lines/line[@branch="true"]'):
|
||||
# Files without any branches have 0% coverage
|
||||
|
Loading…
Reference in New Issue
Block a user