[tests] Make tests run when env is passed to subprocess

fixes #538
This commit is contained in:
Tobias Witek 2020-01-30 21:04:43 +01:00
parent 73ab214654
commit 65a9f66b9e

View file

@ -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()