The tests have several issues:
- Some tests that are wallet-type specific offer the option to run the test with the incompatible type
For example, wallet_dump.py
offers --descriptors
and on current master fails with JSONRPCException: Invalid public key
. After the changes here, it fails with a clear error: unrecognized arguments: --descriptors
.
- Tests that don’t use the wallet at all offer the option to run it with a wallet type. This is confusing and wastes developers time if they are “tricked” into running the test for both wallet types, even though no wallet code is executed at all.
For example, feature_addrman.py
will happily accept and run with --descriptors
or --legacy-wallet
. After the changes here, it no longer silently ignores the flag, but reports a clear error: unrecognized arguments
.