# Failed: The tmpdir fixture is deprecated, use tmp_path instead
E   pytest.PytestRemovedIn9Warning: The tmpdir fixture is deprecated

- **ID:** `python/pytest-tmpdir-deprecation-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The test uses `tmpdir` which is deprecated in pytest 8 in favor of `tmp_path`. With `filterwarnings = error`, the deprecation becomes a failure.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Replace `tmpdir` with `tmp_path`:
def test_file(tmp_path):
    p = tmp_path / 'data.txt'
    p.write_text('hi')
    assert p.read_text() == 'hi'
   ```
2. **** (80% success)
   ```
   If you need py.path API, use `tmp_path` and `py.path.local(tmp_path)` explicitly.
   ```

## Dead Ends

- **** — Hides the warning but the API will be removed in pytest 9, causing future breakage. (60% fail)
- **** — Delays the migration but blocks other fixes and security updates. (55% fail)
