Regarding issue #22605 The functional test framework uses binascii in the following files:
- test/functional/interface_rest.py
- test/functional/rpc_createmultisig.py
- test/functional/test_framework/bdb.py
- test/functional/test_framework/blocktools.py
- test/functional/test_framework/netutil.py
The rpc_createmultisig.py and bitcoin-util-test.py don’t require the binascii functions and could be run using the builtin and consistent bytes (class) methods. I have tested the other files and tried to replace binascii functions but wasn’t able to replace them, they are the legitimate use cases of binascii.