# Failed: Warnings detected: DeprecationWarning: 'collections.OrderedDict' is deprecated

- **ID:** `python/pytest-warnings-as-errors`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pytest was configured with -W error to treat warnings as errors. A deprecation warning from the code or a dependency caused the test to fail.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   # Replace collections.OrderedDict with dict
# Or update the dependency to a newer version
   ```
2. **** (88% success)
   ```
   # pytest.ini
filterwarnings =
    ignore::DeprecationWarning:collections
   ```

## Dead Ends

- **** — This hides the warning but does not fix the deprecated code. The warning will still appear in other contexts. (70% fail)
- **** — This hides all warnings, including important ones, and may mask future compatibility issues. (85% fail)
