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
javacc
dynamic-content
portable-python
server.mappath
elasticsearch-indices">elasticsearch-indices
propertydescriptor
cloudbees
istio-sidecar
wildfly-11
richtext
tomcat-dbcp
ray-tune
pygments
doparallel
yum
crf
sentence
capybara-webkit
gradle-kotlin-dsl
polyfills
mismatch
symfony-http-foundation
error-logging
adobe-pdf-library
node-ffi
webproxy
general-network-error
autocorrect
compiler-warnings
rallyapi