# ValueError: got 3 arguments for 2 parameters: ('a', 'b')

- **ID:** `python/pytest-mark-parametrize-argument-count`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

在 parametrize 中提供的参数数量与测试函数参数数量不匹配。

## Version Compatibility

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

## Workarounds

1. **** (100% success)
   ```
   确保参数数量一致，如 `@pytest.mark.parametrize('a,b', [(1,2), (3,4)])`。
   ```
2. **** (90% success)
   ```
   `@pytest.mark.parametrize('a,b', [{'a':1, 'b':2}])` 更清晰。
   ```

## Dead Ends

- **** — 可能破坏测试逻辑，且需要同步修改 parametrize。 (50% fail)
- **** — pytest 不会忽略，直接报错。 (100% fail)
