Skip to content

How do I test Python programs with signal handlers (e.g., SIGUSR1, SIGINT, etc.)? #25663

Answered by achimnol
achimnol asked this question in Actions
Discussion options

You must be logged in to vote

I managed to resolve the issue by calling os.setpgrp() to split the signal-receiving process group in the test host process.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants