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
sciter
numberpicker
jsonnet
qquickitem
struts2-rest-plugin
web-hosting
mamp
eclipse-photon
open-closed-principle
oneclick
model-validation
passwd
datagrip
mercurial-topics
nehotspotconfigurationmanager
implication
ctypes
cosmos-network
github-ci
billiards
drupal-search
jscompiler
vaadin-session
eclipse-jdt
pairwise.wilcox.test
elliptic-curve
cro
csv-parser
mendel-os
gwt-mosaic