# AssertionError: assert [1, 2, 3] == [1, 3, 2]

- **ID:** `python/pytest-assert-list-order`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

比较两个列表时，元素顺序不同，导致断言失败。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   assert actual == [1, 2, 3]  # 确保期望正确
   ```
2. **** (85% success)
   ```
   assert sorted(actual) == sorted(expected)
   ```

## Dead Ends

- **** — 忽略了顺序，可能掩盖顺序错误。 (70% fail)
- **** — 如果顺序重要，排序会破坏测试意图。 (80% fail)
