# PytestUnknownMarkWarning: Unknown pytest.mark.slowtest - is this a typo?  You can register custom marks to avoid this warning

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

## Root Cause

The test uses a custom mark that is not registered in pytest.ini/pyproject.toml. Pytest still applies the mark but emits a warning, and with strict-markers enabled it becomes an error.

## Version Compatibility

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

## Workarounds

1. **** (98% success)
   ```
   # pyproject.toml
[tool.pytest.ini_options]
markers = [
  "slow: marks tests as slow (deselect with '-m \"not slow\"')",
  "integration: requires external services",
]
   ```
2. **** (95% success)
   ```
   # pyproject.toml
[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = ["slow: slow tests"]
   ```

## Dead Ends

- **** — Silences the warning but the mark remains unregistered; --strict-markers still errors and typo'd marks silently pass. (85% fail)
- **** — Loses the ability to select/exclude the test via -m; CI's 'pytest -m "not slow"' no longer filters it. (75% fail)
