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
httpsys
npm-check-updates
ibm-odm
sap-analytics-cloud
disk-partitioning
object-pooling
unionfs
cpu-hazard
gaps-in-data
adventureworks
transformation-matrix
podman
linker
beanplot
akka-cluster-on-kubernetes
external-tables
poly
tilde-expansion
data-generation
react-native-safe-area-view
codelldb
fileappender
plugin-architecture
memory-mapped-files
pywin32
amazon-workmail
spring-auto-restdocs
npm-registry
kivy-language
cmake4eclipse