Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
345ed00
chore: remove support for Python 3.7 and 3.8
vchudnov-g Dec 4, 2025
e7d5849
chore: format
vchudnov-g Dec 4, 2025
00bacfc
fix `nox -s prerelease_deps` by adding dependencies to noxfile
vchudnov-g Dec 5, 2025
d91d4b1
chore: Use async mock in async test
vchudnov-g Dec 5, 2025
063991a
chore: Simplify code intended for Python 3.9+
vchudnov-g Dec 5, 2025
e6ab415
chore: remove unused import
vchudnov-g Dec 5, 2025
fa50b6a
chore:remove unused import; cosmetic
vchudnov-g Dec 5, 2025
02bdd5d
exclude coverage calculations on some exceptional lines
vchudnov-g Dec 5, 2025
e420f47
fix coverage: runder under proto 4.x
vchudnov-g Dec 5, 2025
6c2206c
test(proto-4.25.8): Fix to run on supported Python version (3.11)
vchudnov-g Dec 5, 2025
f9f4e7f
Have nox run the legacy protobuf test
vchudnov-g Dec 5, 2025
cf8c92a
fix coverage file names
vchudnov-g Dec 5, 2025
90cff72
don't worry about covering unit test
vchudnov-g Dec 5, 2025
39992e3
Cover legacy protobuf tests
vchudnov-g Dec 5, 2025
fb410f4
fix session skip in test
vchudnov-g Dec 5, 2025
371d27e
chore: require protobuf ≥ 4.25.8
vchudnov-g Dec 5, 2025
f9ce257
feat: warn users of upcoming minimum protobuf 5.0.0 requirement
vchudnov-g Dec 5, 2025
2a57035
chore: Pin depencies to lower bounds in constraints for lowest Python…
vchudnov-g Dec 8, 2025
0f9589e
chore: bumpgoogleapis-common-protos to vbersion supporting protobuf 4.x
vchudnov-g Dec 8, 2025
f4decd5
chjore: Update minimum version of google-auth to 2.35.0
vchudnov-g Dec 8, 2025
c506726
chore: require requests ≥ 2.20.0
vchudnov-g Dec 8, 2025
5ebe08d
chore: try removing NO COVER pragmas
vchudnov-g Dec 8, 2025
fe43df7
restore one NO COVER pragma
vchudnov-g Dec 8, 2025
b1b5822
clean up removed pragmas
vchudnov-g Dec 8, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
exclude coverage calculations on some exceptional lines
  • Loading branch information
vchudnov-g committed Dec 5, 2025
commit 02bdd5d40b64dc101c3b310dac9934e738855dec
2 changes: 1 addition & 1 deletion google/api_core/operations_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from google.api_core.operations_v1.operations_rest_client_async import AsyncOperationsRestClient

__all__ += ["AsyncOperationsRestClient", "AsyncOperationsRestTransport"]
except ImportError:
except ImportError: # pragma: NO COVER
# This import requires the `async_rest` extra.
# Don't raise an exception if `AsyncOperationsRestTransport` cannot be imported
# as other transports are still available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)

HAS_ASYNC_REST_DEPENDENCIES = True
except ImportError as e:
except ImportError as e: # pragma: NO COVER
HAS_ASYNC_REST_DEPENDENCIES = False
ASYNC_REST_EXCEPTION = e

Expand All @@ -51,7 +51,7 @@ class AbstractOperationsBaseClientMeta(type):

_transport_registry = OrderedDict() # type: Dict[str, Type[OperationsTransport]]
_transport_registry["rest"] = OperationsRestTransport
if HAS_ASYNC_REST_DEPENDENCIES:
if HAS_ASYNC_REST_DEPENDENCIES: # pragma: NO COVER
_transport_registry["rest_asyncio"] = AsyncOperationsRestTransport

def get_transport_class(
Expand Down
2 changes: 1 addition & 1 deletion google/api_core/operations_v1/transports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
_transport_registry["rest_asyncio"] = cast(
OperationsTransport, AsyncOperationsRestTransport
)
except ImportError:
except ImportError: # pragma: NO COVER
# This import requires the `async_rest` extra.
# Don't raise an exception if `AsyncOperationsRestTransport` cannot be imported
# as other transports are still available.
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncio/test_rest_streaming_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

try:
from google.auth.aio.transport import Response
except ImportError:
except ImportError: # pragma: NO COVER
pytest.skip(
"google-api-core[async_rest] is required to test asynchronous rest streaming.",
allow_module_level=True,
Expand Down
Loading