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
green-threads
real-time-systems
punctuation
swx
asihttprequest
jwcrypto
python-dedupe
thunderbird
xtermjs
setforegroundwindow
imgix
el
jsonapi-serialize
tinker
yii-components
operationqueue
xlookup
dependabot-script
kaspersky
iup
database-permissions
psoc
serializearray
nintendo-3ds
armv7
laravel-eloquent
declarative-programming
libmemcache
renderpartial
arduino-due