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
openacc
memorycache
ubuntu-22.04
anvil-di
system.reactive
ide
django-geoposition
openargs
spring-integration-ip
arq
android-update-sdk
google-publisher-tag
4d
w3-css
ggnet2
grouping-notifications
python-mouse
electrode-native
apache-camel-aws
c++sharp
twitterizer
teamcity-rest-api
react-styleguidist
sos
erlang-supervisor
excel-addins
unjar
docker-tag
poller
xetex