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
css-purge
svm
pykafka
apple-numbers
test-explorer
maven-profiles
springlayout
stringr
boost-hana
oocss
multiple-variable-return
brakeman
gulp-autoprefixer
extjs6
android-looper
stdlist
rudp
react-native-windows
federated-identity
license-maven-plugin
mediatemple
mongoose-middleware
hippomocks
pivot-without-aggregate
administrate
timeline.js
bad-alloc
underscore.js
barryvdh
tablespace