From a35b6e227921f225e0805b127ba02144c01dde72 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 10 Aug 2016 14:02:04 +0200 Subject: [PATCH] Fix testprocess test for custom environment --- tests/end2end/fixtures/test_testprocess.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/end2end/fixtures/test_testprocess.py b/tests/end2end/fixtures/test_testprocess.py index 4ead5f238..503de462d 100644 --- a/tests/end2end/fixtures/test_testprocess.py +++ b/tests/end2end/fixtures/test_testprocess.py @@ -159,12 +159,12 @@ def test_custom_environment(pyproc): @pytest.mark.posix -def test_custom_environment_no_system(monkeypatch, pyproc): - """When env=... is given, no system environment should be present.""" - monkeypatch.setenv('QUTE_TEST_ENV', 'blah') - pyproc.code = 'import os; print(os.environ.get("QUTE_TEST_ENV", "None"))' +def test_custom_environment_system_env(monkeypatch, pyproc): + """When env=... is given, the system environment should be present.""" + monkeypatch.setenv('QUTE_TEST_ENV', 'blubb') + pyproc.code = 'import os; print(os.environ["QUTE_TEST_ENV"])' pyproc.start(env={}) - pyproc.wait_for(data='None') + pyproc.wait_for(data='blubb') class TestWaitFor: