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
vml
touch-event
nonblocking
microsoft-chart-controls
soundfont
isnull
nested-set-model
http-toolkit
zend-auth
apache-httpclient-5.x
adbannerview
sag
aem-63
docker-command
tr1
switch-material
shapley
bot-framework-composer
filetree
webdriver-manager
ti-basic
security-constraint
php-mysqlidb
codeigniter-query-builder
cloudera-quickstart-vm
roundhouse
confluent-rest-proxy
chart.jsv3
jmock
html-input