bpo-36013: Fix the interactive shell SIGINT test. by gpshead · Pull Request #11902 · python/cpython
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters