# PytestDeprecationWarning: pytest.mark.skip without reason is deprecated
  @pytest.mark.skip
deprecated in pytest 7.0, will be an error in future versions

- **ID:** `python/pytest-skip-marker-missing-reason`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

`@pytest.mark.skip` and `@pytest.mark.skipif` require a `reason=` keyword in modern pytest; omitting it triggers a deprecation warning that becomes an error under `-W error`.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (97% success)
   ```
   Always pass a reason:
@pytest.mark.skip(reason='requires GPU')
def test_cuda(): ...

@pytest.mark.skipif(sys.platform == 'win32', reason='POSIX only')
def test_fork(): ...
   ```
2. **** (90% success)
   ```
   Or use `pytest.importorskip` for optional deps:
np = pytest.importorskip('numpy', reason='numpy not installed')
   ```

## Dead Ends

- **** — Suppresses all deprecations, hiding real issues across the suite. (80% fail)
- **** — Changes semantics: xfail expects failure, skip does not run; tests may start passing and turn XPASS. (75% fail)
