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
touch-id
android-multi-display
stenciljs
jbase
checkboxlist
message-driven-bean
wp-mail
xna
react-transition-group
text-align
db4o
architecture
static-analysis
android-library
cublas
notifyicon
go-xorm
pre-increment
ramaze
flex-lexer
minute
atag
state-monad
android-hardware-keyboard
quickcheck
android-compose-lazyfor
rgui
angular-highcharts
ddl-trigger
sequencefile