diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-08-14 09:36:57 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-08-14 09:56:04 +0200 |
| commit | 7ef60ce88465c76613825e4bc063e166f43a157f (patch) | |
| tree | 36b287e7ba34028e1e400676dbf3c45a385c5ff7 | |
| parent | Merge #13634: ui: Compile boost::signals2 only once (diff) | |
| parent | tests: Replace usage of tostring() with tobytes() (diff) | |
| download | discoin-7ef60ce88465c76613825e4bc063e166f43a157f.tar.xz discoin-7ef60ce88465c76613825e4bc063e166f43a157f.zip | |
Merge #13963: tests: Replace usage of tostring() with tobytes()
8845c8aea65897637c330f5893461c0da180eaf8 tests: Replace usage of tostring() with tobytes() (Carl Dong)
Pull request description:
tostring() is deprecated as of python 3.7 and results in stderr output
causing tests to fail
Tree-SHA512: 8c5bbd6c6127490922add98543ee7719d19e11200e081784adef2f026ddf90d7735da7d0fb41fa4307d0d3450a27e126752c2b01cbd79b0c8a695855aed080ac
| -rw-r--r-- | test/functional/test_framework/netutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py index 5f1613d66..45c182f63 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)] |