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
npyscreen
finddialog
updates
athena
dstream
livewires
mptt
jnativehook
imultivalueconverter
zend-acl
expo-camera
dosbox
defaulttablemodel
grpc-go
dft
invoke-sqlcmd
azure-diagnostics
react-native-scrollable-tab-view
python-zappa
popstate
groovy++
mat
textchanged
trailing-slash
hfs+
build-process-template
android-button
nscopying
bbc-microbit
pyarrow