@@ -162,7 +162,7 @@ def test_map(self):
162162 self .assertEqual (wally_map_find (clone , new_key , new_key_len ), (WALLY_OK , 0 ))
163163
164164 # Re-create clone to test combining
165- self .assertEqual (wally_map_free (clone ), WALLY_OK );
165+ self .assertEqual (wally_map_free (clone ), WALLY_OK )
166166 self .assertEqual (wally_map_init_alloc (0 , None , clone ), WALLY_OK )
167167 self .assertEqual (wally_map_add (clone , new_key , new_key_len , v , vl ), WALLY_OK )
168168
@@ -246,7 +246,7 @@ def test_keypath_map(self):
246246 self .assertEqual (wally_map_add (m , bip32 , bip32_len , kp_path , len (kp_path )), WALLY_OK )
247247
248248 # Fingerprint/Path
249- out , out_len = (c_ubyte * (FP_LEN + 5 * 4 ))(), 24
249+ out = (c_ubyte * (FP_LEN + 5 * 4 ))()
250250 cases = [
251251 (None , 0 , out , FP_LEN ), # NULL key
252252 (m , 1 , out , FP_LEN ), # Bad index
@@ -255,7 +255,6 @@ def test_keypath_map(self):
255255 ]
256256 for args in cases :
257257 self .assertEqual (wally_map_keypath_get_item_fingerprint (* args ), WALLY_EINVAL )
258- plen = out_len - 4 if args [3 ] == FP_LEN else out_len - 5
259258 if args [0 ] is None or args [1 ] != 0 :
260259 ret = wally_map_keypath_get_item_path_len (args [0 ], args [1 ])
261260 self .assertEqual (ret , (WALLY_EINVAL , 0 ))
0 commit comments