Skip to content

Commit 02fc06f

Browse files
dongcarlFuzzbawls
authored andcommitted
tests: Replace usage of tostring() with tobytes()
tostring() is deprecated as of python 3.7 and results in stderr output causing tests to fail
1 parent 3fa9d83 commit 02fc06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/netutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def all_interfaces():
106106
max_possible *= 2
107107
else:
108108
break
109-
namestr = names.tostring()
109+
namestr = names.tobytes()
110110
return [(namestr[i:i+16].split(b'\0', 1)[0],
111111
socket.inet_ntoa(namestr[i+20:i+24]))
112112
for i in range(0, outbytes, struct_size)]

0 commit comments

Comments
 (0)