You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
json_reporter.py:25
JSONReporter has sys.stdout as default parameter, which causes it to keep a reference to the original output.
To solve this, simply replace sys.stdout with None as it will fetch sys.stdout if the output parameter is falsy.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Current behavior
There is still being written to stdout (I checked stderr with the same method, but according to the source stdout is being used)
Expected behavior
redirect_stdout
catches all content written to stdout and writes it to the StringIO insteadpylint --version output
Cause
json_reporter.py:25
JSONReporter has sys.stdout as default parameter, which causes it to keep a reference to the original output.
To solve this, simply replace sys.stdout with
None
as it will fetch sys.stdout if the output parameter is falsy.The text was updated successfully, but these errors were encountered: