Skip to content

Commit

Permalink
Add a pragma "no cover" statements and increase threshold to 98
Browse files Browse the repository at this point in the history
  • Loading branch information
grantjenks committed Sep 14, 2021
1 parent 28aa595 commit a2e461a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion diskcache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
from .djangocache import DjangoCache # noqa

__all__.append('DjangoCache')
except Exception: # pylint: disable=broad-except
except Exception: # pylint: disable=broad-except # pragma: no cover
# Django not installed or not setup so ignore.
pass

Expand Down
2 changes: 1 addition & 1 deletion diskcache/djangocache.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

try:
from django.core.cache.backends.base import DEFAULT_TIMEOUT
except ImportError:
except ImportError: # pragma: no cover
# For older versions of Django simply use 300 seconds.
DEFAULT_TIMEOUT = 300

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ line_length = 79
addopts=
-n auto
--cov-branch
--cov-fail-under=97
--cov-fail-under=98
--cov-report=term-missing
--cov=diskcache
--doctest-glob="*.rst"
Expand Down

0 comments on commit a2e461a

Please sign in to comment.