Skip to content

Commit 7229c28

Browse files
committed
Remove some workarounds trying to fix presubmit errors (since fixed)
1 parent 8735472 commit 7229c28

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/asyncio/test_operation_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ async def test_constructor():
8383
assert future.metadata is None
8484
assert await future.running()
8585

86+
8687
@pytest.mark.asyncio
8788
async def test_metadata():
8889
expected_metadata = struct_pb2.Struct()

tests/unit/gapic/test_method.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,16 @@ def test_wrap_method_with_overriding_retry_timeout_compression(unused_sleep):
177177
method, default_retry, default_timeout, default_compression
178178
)
179179

180-
specified_timeout = 22.0
181180
result = wrapped_method(
182181
retry=retry.Retry(retry.if_exception_type(exceptions.NotFound)),
183-
timeout=timeout.ConstantTimeout(specified_timeout),
182+
timeout=timeout.ConstantTimeout(22),
184183
compression=grpc.Compression.Deflate,
185184
)
186185

187186
assert result == 42
188187
assert method.call_count == 2
189188
method.assert_called_with(
190-
timeout=specified_timeout,
189+
timeout=22,
191190
compression=grpc.Compression.Deflate,
192191
metadata=mock.ANY,
193192
)
@@ -201,8 +200,7 @@ def test_wrap_method_with_overriding_timeout_as_a_number():
201200
method, default_retry, default_timeout
202201
)
203202

204-
specified_timeout = 22.0
205-
result = wrapped_method(timeout=specified_timeout)
203+
result = wrapped_method(timeout=22)
206204

207205
assert result == 42
208206

0 commit comments

Comments
 (0)