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
dbup
sass
coff
compare-and-swap
jmh
blazorise
jetty
react-navigation-v5
julia-1.7
sleep
sass-modules
validationsummary
solid
chez-scheme
high-order-component
raiserror
tuples
stanza
nscoder
series
akka-fsm
leaf
xbmc
wmf
pnpm
streaming-flv-video
react-data-table-component
android-alertdialog
snmp4j
maps