# TypeError: skip() missing 1 required positional argument: 'reason'

- **ID:** `python/unittest-skip-decorator-syntax-error`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

在unittest中，@unittest.skip装饰器需要提供一个原因字符串，如果忘记提供，会抛出TypeError。

## Version Compatibility

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

## Workarounds

1. **** (100% success)
   ```
   @unittest.skip('暂时跳过')
def test_example(self):
    pass
   ```
2. **** (100% success)
   ```
   @pytest.mark.skip(reason='暂时跳过')
def test_example():
    pass
   ```

## Dead Ends

- **** — 测试将不再跳过，可能执行失败。 (70% fail)
- **** — skipIf也需要条件参数，不解决缺失reason的问题。 (80% fail)
