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
rmysql
constrainedbox
facebook-graph-api-v2.0
overlay
test-environments
efcore.bulkextensions
hyperledger-composer
mailtrap
django-custom-manager
context-info
shopify-javascript-buy-sdk
facet
mod-plsql
multiautocompletetextview
hidapi
pycountry-convert
android-d8
ggplot2
sslstream
boost-stacktrace
castle-activerecord
ggnet2
android-mms
equivalent
arff
spiram
amazon-mq
abstractverticle
client-certificates
compact-database