# TypeError: test_func() missing 1 required positional argument: 'b'

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

## Root Cause

在 @pytest.mark.parametrize 中提供的参数数量与测试函数参数数量不一致。

## Version Compatibility

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

## Workarounds

1. **确保参数数量匹配** (98% success)
   ```
   @pytest.mark.parametrize('a,b', [(1,2), (3,4)])
def test_func(a,b): pass
   ```
2. **使用单个元组参数** (90% success)
   ```
   @pytest.mark.parametrize('args', [(1,2), (3,4)])
def test_func(args):
    a,b = args
   ```

## Dead Ends

- **使用 *args** — 尝试将测试函数参数改为 *args，但失去了类型检查 (60% fail)
- **提供错误格式** — 尝试在 parametrize 中只提供一个参数元组，但忘记解包 (70% fail)
