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
disk
ontouch
avs
placement
delivery-pipeline
colorbar
jenetics
navigation-architecture
recursion-schemes
jsplitpane
stata
iequatable
continuous-query-notification
android-studio-3.1.4
rails-geocoder
xrm-tooling-connector
i3
wp-multiple-post-thumbnail-plugin
cvpixelbuffer
scala-reflect
appointment
tracker-enabled-dbcontext
dfc
scite
bspline
v8js
macos-high-sierra
qdateedit
metricbeat
laminas-api-tools