• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 22286430595

22 Feb 2026 10:10PM UTC coverage: 92.935%. Remained the same
22286430595

push

github

web-flow
add missing `flush`/`close` methods to `PyStdioRead` / `PyStdioWrite` (#23122)

Add missing `close` and `flush` methods to `PyStdioRead` /
`PyStdioWrite` to avoid this warning:

```
Exception ignored while finalizing file <_io.TextIOWrapper encoding='UTF-8'>:
Traceback (most recent call last):
  File "REDACTED/pants/src/python/pants/init/logging.py", line 227, in initialize_stdio_raw
    sys.__stdin__, sys.__stdout__, sys.__stderr__ = sys.stdin, sys.stdout, sys.stderr  # type: ignore[misc,assignment]
AttributeError: 'builtins.PyStdioRead' object has no attribute 'close'
Exception ignored while finalizing file <_io.BufferedReader>:
Traceback (most recent call last):
  File "REDACTEDpants/src/python/pants/init/logging.py", line 227, in initialize_stdio_raw
    sys.__stdin__, sys.__stdout__, sys.__stderr__ = sys.stdin, sys.stdout, sys.stderr  # type: ignore[misc,assignment]
AttributeError: 'builtins.PyStdioRead' object has no attribute 'close'
```

90874 of 97782 relevant lines covered (92.94%)

4.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.15
/src/python/pants/backend/tools/preamble/subsystem.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc