From 7354feeffecc34bc9f15838662f9211dd686d04f Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 17 Dec 2021 15:21:21 +0100 Subject: [PATCH] follow-up fix tests: logic typo follow-up https://github.com/spesmilo/electrum/pull/7202 defaultdict[int] is a type! ``` >>> from collections import defaultdict >>> d = defaultdict[int] >>> d[2] Traceback (most recent call last): File "", line 1, in TypeError: There are no type variables left in collections.defaultdict[int] ``` Also, prior to py3.9, it is a TypeError. --- electrum/tests/test_lnpeer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/tests/test_lnpeer.py b/electrum/tests/test_lnpeer.py index bc0748b19..6d1306d5f 100644 --- a/electrum/tests/test_lnpeer.py +++ b/electrum/tests/test_lnpeer.py @@ -205,7 +205,7 @@ class MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]): min_cltv_expiry=decoded_invoice.get_min_final_cltv_expiry(), r_tags=decoded_invoice.get_routing_info('r'), invoice_features=decoded_invoice.get_features(), - trampoline_fee_levels=defaultdict[int], + trampoline_fee_levels=defaultdict(int), use_two_trampolines=False, payment_hash=decoded_invoice.paymenthash, payment_secret=decoded_invoice.payment_secret,