# libtmux.pytest_plugin.clear_env

- **Module:** libtmux.pytest_plugin
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/pytest_plugin.py#L117
- **Page:** https://libtmux.org/reference/py/libtmux-pytest_plugin-clear_env/

```
libtmux.pytest_plugin.clear_env(monkeypatch: pytest.MonkeyPatch) -> None
```

Clear out any unnecessary environment variables that could interrupt tests.

tmux show-environment tests were being interrupted due to a lot of crazy env vars.
