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
gravityforms
pst
tweenjs
offscreen-canvas
custom-error-handling
titanium-android
prodigy
braces
adb
ms-access-forms
aws-sam-cli
jboss-logging
azure-cosmosdb-changefeed
js-scrollintoview
qregularexpression
interopservices
full-width
oclazyload
language-switching
monkeyc
jdi
viewer
symfony-http-foundation
pycall
netbeans-8.2
primefaces-datatable
pagespeed
openthread
numbered-list
raw-input