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
vim-registers
meilisearch
square-bracket
token-swap-program
apktool
requests-per-second
cryptsharp
program-files
teardown
failed-to-connect
aws-cognito
pytest-qt
mysql-error-2013
angular-promise
regular-language
auto-keras
ewmh
list-processing
row-constructor
nunit-gui
itk
redefine
nucleon
object-detection-api
mod-alias
pdfa
luau
linpack
mono
excel.application