()
| 85 | |
| 86 | |
| 87 | def test_exception_safety(): |
| 88 | class MyError(RuntimeError): |
| 89 | pass |
| 90 | |
| 91 | env = {'hello': 'world'} |
| 92 | with pytest.raises(MyError): |
| 93 | with envcontext((('foo', 'bar'),), _env=env): |
| 94 | raise MyError() |
| 95 | assert env == {'hello': 'world'} |
| 96 | |
| 97 | |
| 98 | def test_integration_os_environ(): |
nothing calls this directly
no test coverage detected