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
smack
subclassing
quality-gate
header-only
tarantool
oracle-data-integrator
youtube
windows-phone-8.1
show-hide
leveldb
prolog-findall
geometry-shader
git-non-bare-repository
lessphp
wscript.shell
unit-of-work
unpkg
dgl
fastexport
rhel7
aiff
boost-phoenix
gnuplot-iostream
stdbind
libyang
requesthandler
spring-xd
range-v3
globalcompositeoperation
flexboxgrid