From 10e30beb420bdde3cddf32bd2bed080ec4e75997 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sat, 24 Aug 2019 22:57:22 +0200 Subject: [PATCH] Disable "friendly" IDs for tests that expect a full string --- tests/peer/test_peerid.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/peer/test_peerid.py b/tests/peer/test_peerid.py index ea244ce8..e808a3b6 100644 --- a/tests/peer/test_peerid.py +++ b/tests/peer/test_peerid.py @@ -4,10 +4,14 @@ import base58 import multihash from libp2p.crypto.rsa import create_new_key_pair +import libp2p.peer.id as PeerID from libp2p.peer.id import ID ALPHABETS = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" +# ensure we are not in "debug" mode for the following tests +PeerID.FRIENDLY_IDS = False + def test_eq_impl_for_bytes(): random_id_string = ""