# Skipped: got empty parameter set for (u)<function test_parse at 0x7f...>

- **ID:** `python/pytest-parametrize-empty`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A `@pytest.mark.parametrize` decorator was given an empty list, so pytest skips the test. Often caused by a fixture or generator returning an empty collection.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Ensure the parametrize list is non-empty:
CASES = load_cases()
assert CASES, 'no cases loaded'
@pytest.mark.parametrize('u', CASES)
def test_parse(u): ...
   ```
2. **** (85% success)
   ```
   Use `pytest_generate_tests` to dynamically parametrize with a guard:
def pytest_generate_tests(metafunc):
    if 'u' in metafunc.fixturenames:
        cases = load_cases() or [pytest.param(None, marks=pytest.mark.skip('no cases'))]
        metafunc.parametrize('u', cases)
   ```

## Dead Ends

- **** — IDs don't create test cases; the parameter list is still empty. (75% fail)
- **** — Makes the test always skipped, losing coverage silently. (65% fail)
