# AttributeError: 'CaptureFixture' object has no attribute 'readouterr'

- **ID:** `python/pytest-capture-no-output`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

In newer pytest versions, `capsys` returns a `CaptureFixture` object and the method to read output is `readouterr()`. In some versions a typo like `read_outerr` or using `capfd` incorrectly causes this.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (97% success)
   ```
   Use the correct method:
def test_out(capsys):
    print('hi')
    captured = capsys.readouterr()
    assert captured.out == 'hi\n'
   ```

## Dead Ends

- **** — These methods don't exist on CaptureFixture. (80% fail)
- **** — Same API surface; typo persists. (70% fail)
