Use `tuple` instead of `list`/`map` combination

pull/17881/head
Lidi Zheng 6 years ago
parent 61bea3891b
commit cb3966b881
  1. 4
      src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py

@ -56,8 +56,8 @@ class ReflectionServicerTest(unittest.TestCase):
# returned by stub and manually crafted protobuf will always fail.
def _assert_sequence_of_proto_equal(self, x, y):
self.assertSequenceEqual(
list(map(lambda x: x.SerializeToString(), x)),
list(map(lambda x: x.SerializeToString(), y)),
tuple(proto.SerializeToString() for proto in x),
tuple(proto.SerializeToString() for proto in y),
)
def setUp(self):

Loading…
Cancel
Save