From ce369d47e93f1d51a03d39886460c233ee156199 Mon Sep 17 00:00:00 2001 From: mhchia Date: Wed, 31 Jul 2019 16:23:07 +0800 Subject: [PATCH] Refine exception message --- tests/pubsub/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pubsub/conftest.py b/tests/pubsub/conftest.py index f537fb5d..cf8a26e8 100644 --- a/tests/pubsub/conftest.py +++ b/tests/pubsub/conftest.py @@ -86,8 +86,8 @@ def gossipsubs(num_hosts, gossipsub_params): def _make_pubsubs(hosts, pubsub_routers): if len(pubsub_routers) != len(hosts): raise ValueError( - f"lenght of pubsub_routers={pubsub_routers} should be equaled to " - f"hosts={hosts}" + f"lenght of pubsub_routers={pubsub_routers} should be equaled to the " + f"length of hosts={len(hosts)}" ) return tuple( Pubsub(