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
cupertinonavigationbar
node-got
nanoid
aws-iot-analytics
mo
spill-range
esp32
pixmap
widevine
usmap
libreoffice
emeditor
android-jetpack-compose-material3
line-spacing
6lowpan
safemoon
raw-loader
systimestamp
single-file
directive
qthread
gjslint
charmap
elasticsearch-date
oauth-refresh-token
pre-increment
eddystone
pagersnaphelper
output-window
postgresql-8.4