From 76831c2edf3239918acfc7d111622b322ccb13ed Mon Sep 17 00:00:00 2001 From: SNeedlewoods Date: Wed, 3 Jun 2026 22:07:49 +0200 Subject: [PATCH] fix: TypeError: 'method' object is not subscriptable --- tests/functional_tests/address_book.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional_tests/address_book.py b/tests/functional_tests/address_book.py index c6090e253..008d0734e 100755 --- a/tests/functional_tests/address_book.py +++ b/tests/functional_tests/address_book.py @@ -97,15 +97,15 @@ class AddressBookTest(): # request (partially) out of range ok = False - try: res = wallet.get_address_book[4, 2] + try: res = wallet.get_address_book([4, 2]) except: ok = True assert ok ok = False - try: res = wallet.get_address_book[0, 2] + try: res = wallet.get_address_book([0, 2]) except: ok = True assert ok ok = False - try: res = wallet.get_address_book[2, 0] + try: res = wallet.get_address_book([2, 0]) except: ok = True assert ok