diff --git a/tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py b/tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py index 9d2f6ea01..0d28ec447 100644 --- a/tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py +++ b/tests/unit/pubsub_v1/subscriber/test_messages_on_hold.py @@ -19,11 +19,6 @@ from google.pubsub_v1 import types as gapic_types -# Using this function instead of a lambda to satisfy the coverage tool -def return_false(): - return False - - def make_message(ack_id, ordering_key): proto_msg = gapic_types.PubsubMessage(data=b"Q", ordering_key=ordering_key) return message.Message( @@ -31,7 +26,7 @@ def make_message(ack_id, ordering_key): ack_id, 0, queue.Queue(), - exactly_once_delivery_enabled_func=return_false, + exactly_once_delivery_enabled_func=lambda: False, # pragma: NO COVER )