aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorCarl Dong <accounts@carldong.me>2018-08-13 19:05:31 -0700
committerCarl Dong <accounts@carldong.me>2018-08-13 19:05:31 -0700
commit8845c8aea65897637c330f5893461c0da180eaf8 (patch)
tree36b287e7ba34028e1e400676dbf3c45a385c5ff7 /test/functional/test_framework
parentddc3ec92b0e655a3da21ac2e85ec2e7ecb66c65b (diff)
tests: Replace usage of tostring() with tobytes()
tostring() is deprecated as of python 3.7 and results in stderr output causing tests to fail
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r--test/functional/test_framework/netutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py
index 5f1613d668..45c182f630 100644
--- a/test/functional/test_framework/netutil.py
+++ b/test/functional/test_framework/netutil.py
@@ -107,7 +107,7 @@ def all_interfaces():
max_possible *= 2
else:
break
- namestr = names.tostring()
+ namestr = names.tobytes()
return [(namestr[i:i+16].split(b'\0', 1)[0],
socket.inet_ntoa(namestr[i+20:i+24]))
for i in range(0, outbytes, struct_size)]