@@ -230,13 +230,13 @@ def test_need_rejoin(coordinator):
230230def test_refresh_committed_offsets_if_needed (mocker , coordinator ):
231231 mocker .patch .object (ConsumerCoordinator , 'fetch_committed_offsets' ,
232232 return_value = {
233- TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , b '' , - 1 ),
234- TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , b '' , - 1 )})
233+ TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , '' , - 1 ),
234+ TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , '' , - 1 )})
235235 coordinator ._subscription .assign_from_user ([TopicPartition ('foobar' , 0 )])
236236 assert coordinator ._subscription .needs_fetch_committed_offsets is True
237237 coordinator .refresh_committed_offsets_if_needed ()
238238 assignment = coordinator ._subscription .assignment
239- assert assignment [TopicPartition ('foobar' , 0 )].committed == OffsetAndMetadata (123 , b '' , - 1 )
239+ assert assignment [TopicPartition ('foobar' , 0 )].committed == OffsetAndMetadata (123 , '' , - 1 )
240240 assert TopicPartition ('foobar' , 1 ) not in assignment
241241 assert coordinator ._subscription .needs_fetch_committed_offsets is False
242242
@@ -303,8 +303,8 @@ def test_close(mocker, coordinator):
303303@pytest .fixture
304304def offsets ():
305305 return {
306- TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , b '' , - 1 ),
307- TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , b '' , - 1 ),
306+ TopicPartition ('foobar' , 0 ): OffsetAndMetadata (123 , '' , - 1 ),
307+ TopicPartition ('foobar' , 1 ): OffsetAndMetadata (234 , '' , - 1 ),
308308 }
309309
310310
0 commit comments