[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pym… · python/cpython@ca8d46d · GitHub
Skip to content

Commit ca8d46d

Browse files
ambvgraingert
andauthored
[3.9] bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (GH-21956) (#22397)
Closes bpo issue 41602. (cherry picked from commit a68a2ad) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
1 parent 57e7d5c commit ca8d46d

3 files changed

Lines changed: 91 additions & 6 deletions

File tree

Lib/test/test_runpy.py

Lines changed: 86 additions & 6 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add tests for SIGINT handling in the runpy module.

Modules/main.c

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)