Skip to content

Commit 6415e99

Browse files
committed
fix: skip coverage checks for code specific to Pyton 3.7
Since we'll be dropping support for 3.7 soon.
1 parent 9b1fe75 commit 6415e99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

google/api_core/_python_package_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get_dependency_version(dependency_name: str) -> Optional[PackagingVersion]:
4949

5050
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
5151
# this code path once we drop support for Python 3.7
52-
else:
52+
else: # pragma: NO COVER
5353
# Use pkg_resources, which is part of setuptools.
5454
import pkg_resources
5555

google/api_core/_python_version_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def _flatten_message(text: str) -> str:
100100
return textwrap.dedent(text).strip().replace("\n", " ")
101101

102102

103-
# TODO: Remove once we no longer support Python3.7
103+
# TODO: Remove once we no longer support Python 3.7
104104
if sys.version_info < (3, 8):
105105

106-
def _get_pypi_package_name(module_name):
106+
def _get_pypi_package_name(module_name): # pragma: NO COVER
107107
"""Determine the PyPI package name for a given module name."""
108108
return None
109109

0 commit comments

Comments
 (0)