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
system.web
instsrv
container-view
core-plot
matrixcursor
zend-translate
jsr170
flysystem-google-drive
azure-rbac
outbox-pattern
nativescript-telerik-ui
esbuild
addin-express
react-laravel
named-pipes
azure-agent
photokit
convolutional-neural-network
swirl
osm2pgsql
qgraphicsview
pls-00103
android-unit-testing
cybersource
sonarscanner
partiallinktext
t-test
staticlayout
git-show
duckling