diff options
author | ng0 <ng0@n0.is> | 2019-02-13 14:19:16 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-13 14:19:16 +0000 |
commit | aaca8161989c5af3f46251cd3e8d5fb531a5cb01 (patch) | |
tree | 33c6bcda7ffa3582a5d1136323db198a6b258157 /src/dht | |
parent | 7dc19cd78eed65fbeef307d9740c4090170ae418 (diff) | |
download | gnunet-aaca8161989c5af3f46251cd3e8d5fb531a5cb01.tar.gz gnunet-aaca8161989c5af3f46251cd3e8d5fb531a5cb01.zip |
Fix dht python test failure with python3.7
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/test_dht_tools.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht/test_dht_tools.py.in b/src/dht/test_dht_tools.py.in index 05582cbd0..38a9f9622 100644 --- a/src/dht/test_dht_tools.py.in +++ b/src/dht/test_dht_tools.py.in | |||
@@ -124,7 +124,7 @@ time.sleep(1) | |||
124 | 124 | ||
125 | print("TEST: Testing get...", end='') | 125 | print("TEST: Testing get...", end='') |
126 | rc, stdo, stde = r_get(['-k', 'testkey', '-T', '50 ms', '-t', '8'], want_stdo=True, failer=end_arm_failer) | 126 | rc, stdo, stde = r_get(['-k', 'testkey', '-T', '50 ms', '-t', '8'], want_stdo=True, failer=end_arm_failer) |
127 | stdo = stdo.replace('\r', '').splitlines() | 127 | stdo = stdo.decode('utf-8').replace('\r', '').splitlines() |
128 | expect = "Result 0, type 8:\ntestdata".splitlines() | 128 | expect = "Result 0, type 8:\ntestdata".splitlines() |
129 | if len(stdo) != 2 or len(expect) != 2 or stdo[0] != expect[0] or stdo[1] != expect[1]: | 129 | if len(stdo) != 2 or len(expect) != 2 or stdo[0] != expect[0] or stdo[1] != expect[1]: |
130 | fail("output `{}' differs from expected `{}'".format(stdo, expect)) | 130 | fail("output `{}' differs from expected `{}'".format(stdo, expect)) |