# Failed example:
    print({'a': 1, 'b': 2})
Expected:
    {'a': 1, 'b': 2}
Got:
    {'a': 1, 'b': 2}

1 items had failures

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

## Root Cause

Dict ordering differs across Python versions or the output has trailing whitespace/ordering that differs. Without NORMALIZE_WHITESPACE or ELLIPSIS, doctest requires byte-exact output.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Enable normalization in pytest.ini:
  [tool.pytest.ini_options]
  doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
Or in docstring:
  >>> print(d)  # doctest: +NORMALIZE_WHITESPACE
   ```
2. **** (92% success)
   ```
   Sort dict output explicitly in the docstring example:
  >>> sorted(d.items())
  [('a', 1), ('b', 2)]
   ```

## Dead Ends

- **** — Breaks on other Python versions where dict ordering or repr differ. (75% fail)
- **** — Loses documentation test coverage; hides real regressions. (50% fail)
