# Expected:
    {'id': 1, 'name': 'Alice', 'created': '2024-01-01T00:00:00'}
Got:
    {'id': 1, 'name': 'Alice', 'created': '2024-01-01T00:00:00.123456'}

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

## Root Cause

Doctest compares the exact repr of the output by default. Non-deterministic values (timestamps, UUIDs, memory addresses, floats) differ between runs, so the doctest fails intermittently.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   >>> get_user(1)  # doctest: +ELLIPSIS
{'id': 1, 'name': 'Alice', 'created': '...'}
   ```
2. **** (92% success)
   ```
   # In conftest.py or pytest.ini:
# doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE

>>> get_user(1)  # doctest: +ELLIPSIS
{'id': 1, 'name': 'Alice', 'created': '...'}
   ```

## Dead Ends

- **** — Skips the whole example, including the parts that are deterministic and worth testing. (80% fail)
- **** — Doctest does not support regex natively; you'd need a custom OutputChecker, which is heavy for one example. (75% fail)
