# libtmux.pytest_plugin.clear_env

- **Module:** libtmux.pytest_plugin
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/pytest_plugin.py#L117
- **Page:** https://libtmux.org/en/py/latest/reference/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.
