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
brakeman
htonl
return-code
backbone-events
crc64
hotwire
python-zip
delphi-2009
react-native-reanimated
specrun
class-completion
printers
silverstripe
magicline
os-dependent
l2l
preg-match-all
wave
carbon-copy
http.server
coldfusion
pagefile
nan
reorderable-list
obex
drools-kie-workbench
controlled-component
ecmascript-2019
compressed-class
visual-c++-2005