Add branch coverage workaround for coverage.py bug.

This commit is contained in:
Florian Bruhin 2015-08-02 23:47:22 +02:00
parent b93b32c92f
commit b850df090b

View File

@ -52,7 +52,8 @@ SELECTORS = {
Group.focus: '*:focus',
}
FILTERS = {
# WORKAROUND for https://bitbucket.org/ned/coveragepy/issues/90
FILTERS = { # pragma: no branch
Group.links: (lambda e: 'href' in e and
QUrl(e['href']).scheme() != 'javascript'),
}