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
nuspec
vscode-snippets
process-template-editor
rust-decl-macros
phone-number
httpwatch
php-telegram-bot
solarwindslem
pgrouting
wink
google-play-games
powershell-module
2-3-4-tree
reinterpret-cast
type-members
kendo-ui-window
nox
anyconnect
google-cloud-instances
cupertinonavigationbar
noborder
darksky
visual-studio-cordova
bodo
docker-desktop
perl-pod
vault
environment
microsoft-dynamics-nav
ngsw-config