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
syntax-checking
drake
interception
reporting-services-2016
ricoh-theta
identity-management
tdbgrid
sfx
pyvisa
python-hypothesis
golden-layout
accept.js
jcs
bitdefender
cassandra-cli
getstream-chat
invite
spy
idle-processing
azuremlsdk
authenticity-token
idhttp
dsym
dynamics-365-operations
x11-forwarding
outer-classes
odoo-9
markdown
stm32f3
integration-testing