# Failed: DOCTEST ... Expected:
    4
Got:
    5

- **ID:** `python/pytest-doctest-failure`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A doctest example in a docstring produced a different output than expected. This can be due to changes in the function or environment-dependent output.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   If the change is intentional, update the docstring to match the new output.
   ```
2. **** (90% success)
   ```
   >>> print(some_func())  # doctest: +ELLIPSIS
Hello ...
This allows parts of the output to vary.
   ```

## Dead Ends

- **** — This loses the documentation and test coverage. (80% fail)
- **** — This skips the test but doesn't fix the discrepancy. (70% fail)
