The test doesn’t pass (not detected by the normal CI, because it is an extended test):
0Traceback (most recent call last):
1 File "/tmp/cirrus-ci-build/bitcoin-core/test/functional/test_framework/test_framework.py", line 133, in main
2 self.run_test()
3 File "/tmp/cirrus-ci-build/bitcoin-core/test/functional/feature_pruning.py", line 480, in run_test
4 self.wallet_test()
5 File "/tmp/cirrus-ci-build/bitcoin-core/test/functional/feature_pruning.py", line 361, in wallet_test
6 assert_raises_rpc_error(-4, "Importing wallets is disabled when blocks are pruned", self.nodes[2].importwallet, "abc")
7 File "/tmp/cirrus-ci-build/bitcoin-core/test/functional/test_framework/util.py", line 130, in assert_raises_rpc_error
8 assert try_rpc(code, message, fun, *args, **kwds), "No exception raised"
9 File "/tmp/cirrus-ci-build/bitcoin-core/test/functional/test_framework/util.py", line 145, in try_rpc
10 raise AssertionError(
11AssertionError: Expected substring not found in error message:
12substring: 'Importing wallets is disabled when blocks are pruned'
13error message: 'Only legacy wallets are supported by this command'.
So revert it for now, which will be done anyway in https://github.com/bitcoin/bitcoin/pull/24865/commits. (This commit is taken from there)