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
power-automate-desktop
sysdate
file-storage
amazon-ecr
tomtom
coingecko
django-openid-auth
hibernate
entity-framework-migrations
blessed
twilio-frontline
static-quantization
electron-react-boilerplate
configureawait
ubuntu-18.04
drawrect
serviceloader
ajax
jqgrid-formatter
spring-boot-admin
viewpanel
openxr
dockerignore
basil.js
firebase-machine-learning
mailgun
fedora-25
ktor-client
double-click-advertising
run-war