Did that for fun (in the wrong test file), and it prints the error message:
0test_framework.authproxy.JSONRPCException: Wallet loading failed. Error loading wallet. Wallet requires blocks to be downloaded, and software does not currently support loading wallets while blocks are being downloaded out of order when using assumeutxo snapshots. Wallet should be able to load successfully after node sync reaches height 299 (-4)
Hacky diff:
0diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py
1index ab2e6c4d0b..c54c650532 100755
2--- a/test/functional/feature_assumeutxo.py
3+++ b/test/functional/feature_assumeutxo.py
4@@ -48,7 +48,8 @@ COMPLETE_IDX = {'synced': True, 'best_block_height': FINAL_HEIGHT}
5
6
7 class AssumeutxoTest(BitcoinTestFramework):
8-
9+ def add_options(self, parser):
10+ self.add_wallet_options(parser, legacy=False)
11 def set_test_params(self):
12 """Use the pregenerated, deterministic chain up to height 199."""
13 self.num_nodes = 3
14@@ -143,6 +144,11 @@ class AssumeutxoTest(BitcoinTestFramework):
15
16 self.sync_blocks()
17
18+ n0.createwallet('test',blank=True, disable_private_keys=True, descriptors=True)
19+ w = n0.get_wallet_rpc("test")
20+
21+ w.importdescriptors([{"desc":"addr(mjTkW3DjgyZck4KbiRusZsqTgaYTxdSz6z)#jdtmxdcm","timestamp":0,"label":"det_coinbase_key_0"}])
22+
23 # Generate a series of blocks that `n0` will have in the snapshot,
24 # but that n1 doesn't yet see. In order for the snapshot to activate,
25 # though, we have to ferry over the new headers to n1 so that it
26@@ -160,6 +166,8 @@ class AssumeutxoTest(BitcoinTestFramework):
27 for n in self.nodes:
28 assert_equal(n.getblockchaininfo()["headers"], SNAPSHOT_BASE_HEIGHT)
29
30+ w.backupwallet("/tmp/abc.dat")
31+
32 self.log.info("-- Testing assumeutxo + some indexes + pruning")
33
34 assert_equal(n0.getblockcount(), SNAPSHOT_BASE_HEIGHT)
35@@ -201,6 +209,8 @@ class AssumeutxoTest(BitcoinTestFramework):
36
37 assert_equal(n1.getblockchaininfo()["blocks"], SNAPSHOT_BASE_HEIGHT)
38
39+ n1.restorewallet("hi", "/tmp/abc.dat")
40+
41 PAUSE_HEIGHT = FINAL_HEIGHT - 40
42
43 self.log.info("Restarting node to stop at height %d", PAUSE_HEIGHT)