()
| 171 | |
| 172 | |
| 173 | def test_setenv() -> None: |
| 174 | monkeypatch = MonkeyPatch() |
| 175 | with pytest.warns(pytest.PytestWarning): |
| 176 | monkeypatch.setenv("XYZ123", 2) # type: ignore[arg-type] |
| 177 | import os |
| 178 | |
| 179 | assert os.environ["XYZ123"] == "2" |
| 180 | monkeypatch.undo() |
| 181 | assert "XYZ123" not in os.environ |
| 182 | |
| 183 | |
| 184 | def test_delenv() -> None: |
nothing calls this directly
no test coverage detected