Closes #17730: in code.interact(), when banner="", do not print anything.

Also adds tests for banner printing.
3 files changed