summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/helper.py2
-rw-r--r--tests/helper_test.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 4cd01b77..26787fa8 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -333,7 +333,7 @@ def call_cmd_async(cmdlist, stdin=None, env=None):
self.deferred.errback(terminated_obj)
d = Deferred()
- environment = os.environ
+ environment = os.environ.copy()
if env is not None:
environment.update(env)
logging.debug('ENV = %s', environment)
diff --git a/tests/helper_test.py b/tests/helper_test.py
index d7b11164..c2927725 100644
--- a/tests/helper_test.py
+++ b/tests/helper_test.py
@@ -451,7 +451,6 @@ class TestCallCmdAsync(unittest.TestCase):
env={'foo': 'bar'})
self.assertEqual(ret, 'bar')
- @utilities.expected_failure
@inlineCallbacks
def test_env_doesnt_pollute(self):
with mock.patch.dict(os.environ, {}, clear=True):