Skip to content

Commit 417064d

Browse files
committed
chore: try to address more coverage failures
1 parent fcdfe40 commit 417064d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/unit/test_bidi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def test_rpc_callback_fires_when_consumer_start_fails(self):
833833

834834
# Wait for the consumer's thread to exit.
835835
while consumer.is_active:
836-
pass
836+
pass # pragma: NO COVER
837837

838838
assert callback.call_args.args[0] == grpc.StatusCode.INVALID_ARGUMENT
839839

tests/unit/test_python_version_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _create_failure_message(
3434
expected, result, py_version, date, gapic_dep, py_eol, eol_warn, gapic_end
3535
):
3636
"""Create a detailed failure message for a test."""
37-
return textwrap.dedent(
37+
return textwrap.dedent( # pragma: NO COVER
3838
f"""
3939
--- Test Failed ---
4040
Expected status: {expected.name}
@@ -129,7 +129,7 @@ def test_all_tracked_versions_and_date_scenarios(
129129
(result != expected_status)
130130
or (result != PythonVersionStatus.PYTHON_VERSION_SUPPORTED)
131131
and mock_log.call_count != 1
132-
):
132+
): # pragma: NO COVER
133133
py_version_str = f"{version_tuple[0]}.{version_tuple[1]}"
134134
version_info = PYTHON_VERSION_INFO[version_tuple]
135135

0 commit comments

Comments
 (0)