# Failed: Timeout (>30.0s) from pytest-timeout.

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

## Root Cause

A test exceeds the default 30s timeout, often due to a blocking network call, deadlock, or an infinite loop.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   @pytest.mark.timeout(120)
def test_slow_operation():
    ...
   ```
2. **** (95% success)
   ```
   @patch('requests.get')
def test_fetch(mock_get):
    mock_get.return_value.json.return_value = {'ok': True}
    ...
   ```

## Dead Ends

- **** — Hides the underlying hang and can cause CI to run indefinitely. (90% fail)
- **** — Makes the test slower and still fails; does not address the root cause. (80% fail)
