bpo-36013: Fix the interactive shell SIGINT test. by gpshead · Pull Request #11902 · python/cpython

@gpshead

First attempt: switch shell interupt test to zsh.

pablogsal

@gpshead

pablogsal

@gpshead

Unclear if this is necessary, but if there is a race condition between
delivering ourselves a SIGINT and the CPython SIGINT handler that raises
KeyboardInterrupt happening before our process could exit, this should
avoid it.  I made it easier to read and maintain regardless.