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
nvda
uistepper
snowflake-connector
reviver-function
non-thread-safe
psapi
veins
semantic-markup
qgrid
raspberry-os
controlsfx
date-math
secure-coding
instagram-story
type-parameter
iup
jpeg2000
android-alarms
opensaml
usb4java
highcharts-ng
bigdata
output-clause
ubsan
itemtouchhelper
geckodriver
quicktypebar
mql4
variable-variables
nicedit