Tests set_environ will raise exceptions in context when the value parameter is None.
()
| 972 | |
| 973 | |
| 974 | def test_set_environ_raises_exception(): |
| 975 | """Tests set_environ will raise exceptions in context when the |
| 976 | value parameter is None.""" |
| 977 | with pytest.raises(Exception) as exception: |
| 978 | with set_environ("test1", None): |
| 979 | raise Exception("Expected exception") |
| 980 | |
| 981 | assert "Expected exception" in str(exception.value) |
| 982 | |
| 983 | |
| 984 | @pytest.mark.skipif(os.name != "nt", reason="Test only on Windows") |
nothing calls this directly
no test coverage detected