Close #11577: Improve binhex test coverage and fix ResourceWarning
4 files changed