Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 46733f9

Browse files
committed
Remove unused internal_status
1 parent 67d0131 commit 46733f9

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

tests/mockserver_tests/mock_server_test_base.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,6 @@ def unavailable_status() -> _Status:
7878
return status
7979

8080

81-
# Creates an INTERNAL status.
82-
def internal_status() -> _Status:
83-
error = status_pb2.Status(
84-
code=code_pb2.INTERNAL,
85-
message="Received unexpected EOS on DATA frame from server",
86-
)
87-
status = _Status(
88-
code=code_to_grpc_status_code(error.code),
89-
details=error.message,
90-
trailing_metadata=(("grpc-status-details-bin", error.SerializeToString()),),
91-
)
92-
return status
93-
94-
9581
def add_error(method: str, error: status_pb2.Status):
9682
MockServerTestBase.spanner_service.mock_spanner.add_error(method, error)
9783

tests/mockserver_tests/test_request_id_header.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ def test_unary_retryable_error(self):
268268
]
269269
# TODO(@odeke-em): enable this test in the next iteration
270270
# when we've figured out unary retries with UNAVAILABLE.
271+
# See https://github.com/googleapis/python-spanner/issues/1379.
271272
if True:
272273
print(
273274
"TODO(@odeke-em): enable request_id checking when we figure out propagation for unary requests"

0 commit comments

Comments
 (0)