diff --git a/testing/psbt.py b/testing/psbt.py index ca556d7d..6dc99c4e 100644 --- a/testing/psbt.py +++ b/testing/psbt.py @@ -376,7 +376,7 @@ class BasicPSBT: # auto-detect and decode Base64 and Hex. if raw[0:10].lower() == b'70736274ff': raw = a2b_hex(raw.strip()) - if raw[0:6] == b'cHNidP': + if raw[0:6] in (b'cHNidP', 'cHNidP'): raw = b64decode(raw) assert raw[0:5] == b'psbt\xff', "bad magic {}".format(raw[0:5]) with io.BytesIO(raw[5:]) as fd: diff --git a/testing/test_ccc.py b/testing/test_ccc.py index ca7e9bf1..68a4c737 100644 --- a/testing/test_ccc.py +++ b/testing/test_ccc.py @@ -327,7 +327,6 @@ def setup_ccc(goto_home, pick_menu_item, cap_story, press_select, pass_word_quiz if w2fa: pick_menu_item(mi_2fa) - press_cancel() # leave Spending Policy return c_words