This PR adds a functional framework test for the TestShell
class. The primary motivation for this is to avoid that the example instructions for the interactive Python shell in test-shell.md
get outdated or broken without noticing, a problem we had already several times in the past (see #26520, #27906, #31415). Having a copy is still not perfect, as docs and functional test have to be kept in sync, but I don’t expect this to be a problem in practice, assuming the hint in the functional test comment is hopefully noticed if changes are made.
Alternatively, the example instructions in test-shell.md
could be removed with a hint to the functional test (I tend to prefer to keep the docs as-is though, showing the full REPL interaction).
The first commit contain two small removal fix-ups in test-shell.md
regarding the result of the createwallet
RPC call and the mentioning of the noshutdown
option that was removed earlier (see #31620). Could be backported to v30.