From 65a9f66b9e97ba05e38654e4b14f258a66e4a4ed Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Thu, 30 Jan 2020 21:04:43 +0100 Subject: [PATCH] [tests] Make tests run when env is passed to subprocess fixes #538 --- tests/mocks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/mocks.py b/tests/mocks.py index 38f1583..3940bb0 100644 --- a/tests/mocks.py +++ b/tests/mocks.py @@ -75,7 +75,7 @@ class MockPopen(object): self.mock.returncode = 0 def assert_call(self, cmd): - self.mock.popen.assert_any_call(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + self.mock.popen.assert_any_call(shlex.split(cmd), env=mock.ANY, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) def cleanup(self): self._patch.stop()