File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ def test_handle_read_nonspecialport():
230230 zeroconf = Mock ()
231231 # packet data captured by running python examples/registration.py --debug
232232 zeroconf .socket .recvfrom = lambda x : (
233- '0\x1a \x01 \x00 \x00 \x01 \x00 \x00 \x00 \x00 \x00 \x00 \x08 testname\x05 local\x00 \x00 \x01 \x00 \x01 ' ,
233+ b '0\x1a \x01 \x00 \x00 \x01 \x00 \x00 \x00 \x00 \x00 \x00 \x08 testname\x05 local\x00 \x00 \x01 \x00 \x01 ' ,
234234 ('127.0.0.1' , 1234 ))
235235
236236 listener = Listener (zeroconf )
@@ -243,7 +243,7 @@ def test_handle_read_dnsport():
243243
244244 zeroconf = Mock ()
245245 zeroconf .socket .recvfrom = lambda x : (
246- '0\x1a \x01 \x00 \x00 \x01 \x00 \x00 \x00 \x00 \x00 \x00 \x08 testname\x05 local\x00 \x00 \x01 \x00 \x01 ' ,
246+ b '0\x1a \x01 \x00 \x00 \x01 \x00 \x00 \x00 \x00 \x00 \x00 \x08 testname\x05 local\x00 \x00 \x01 \x00 \x01 ' ,
247247 ('127.0.0.1' , 53 ))
248248
249249 listener = Listener (zeroconf )
You can’t perform that action at this time.
0 commit comments