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
django-sitetree
pygame-menu
geohashing
starlark
android-design-library
paymentpass
disabled-input
plotly.graph-objects
changeset
ionic-webview
spark-submit
ruby-dotenv
objectsize
f#-3.1
cypress-configuration
snapstodevicepixels
message-queue
pagersnaphelper
symspell
sieve-of-eratosthenes
html5-history
open3d
git-squash
flurl
simbad
conditional-formatting
dets
system.io.pipelines
byval
dnsimple