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
text-decorations
page-tables
pyodbc
aad-pod-identity
codahale-metrics
bitcoin
ionic-cli
xsd
smbus
update-statement
rctbridge
leshan
pass-by-reference-value
endorsed
vue-test-utils
wdio
nme
intellij-rust
pylance
sslcontext
squashfs
django-rest-knox
react-modal
boringssl
gatsby-remark-image
nunit-3.0
continuation-passing
ladder-logic
ffplay
rxjs-observables