I'm unable to capture stdout of runpy.run_module into a variable using StringIO. To demonstrate the problem, I created a script called runpy_test.py (code below
windows-firewall-api
ibm-cloud-platform
ilogger
angular-abstract-control
webvtt
solace-mq
pytables
camera2
jvectormap
passenger
code-assist
isocpp
sensitive-data
c4.5
geo
distilbert
slots
pocketsvg
std-tie
ambient
dark-theme
qvector
gnulib
scullyio
azure-lab-services
cacheapi
agrep
core-lua
feathers-hook
jira-xray