@pytest.mark.posix
def test_custom_environment_system_env(monkeypatch, pyproc):
 monkeypatch.setenv('QUTE_TEST_ENV', 'blubb')
 pyproc.code = 'import os; print(os.environ["QUTE_TEST_ENV"])'
 pyproc.start(env={})
 pyproc.wait_for(data='blubb')

@ pytest . mark . posix def test_custom_environment_system_env ( monkeypatch , pyproc ) : monkeypatch . setenv ( 'QUTE_TEST_ENV' , 'blubb' ) pyproc . code = 'import os; print(os.environ["QUTE_TEST_ENV"])' pyproc . start ( env = { } ) pyproc . wait_for ( data = 'blubb' )
when env= .