Skip to content

Commit ebffd73

Browse files
committed
string encoded as bytes for python3 compatibility
1 parent 1025c51 commit ebffd73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test_zeroconf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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\x08testname\x05local\x00\x00\x01\x00\x01',
233+
b'0\x1a\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x08testname\x05local\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\x08testname\x05local\x00\x00\x01\x00\x01',
246+
b'0\x1a\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x08testname\x05local\x00\x00\x01\x00\x01',
247247
('127.0.0.1', 53))
248248

249249
listener = Listener(zeroconf)

0 commit comments

Comments
 (0)