Skip to content

Commit 862a056

Browse files
committed
Do not calculate coverage on __version__
Signed-off-by: Alexey Stepanov <penguinolog@gmail.com>
1 parent e0d650e commit 862a056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

threaded/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
from ._threaded import Threaded, threaded
2424
from ._threadpooled import ThreadPooled, threadpooled
2525

26-
try:
26+
try: # pragma: no cover
2727
__version__ = pkg_resources.get_distribution(__name__).version
28-
except pkg_resources.DistributionNotFound:
28+
except pkg_resources.DistributionNotFound: # pragma: no cover
2929
# package is not installed, try to get from SCM
3030
try:
3131
import setuptools_scm # type: ignore

0 commit comments

Comments
 (0)