summaryrefslogtreecommitdiff
path: root/tests/testutil.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-16 17:11:25 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-16 17:11:25 +0200
commit20301dd3d55c81e3655c367b4d74382cec499717 (patch)
treee657ef5a886746417ba9dbed324b31f1b797a2ba /tests/testutil.py
parent73f9a2f9fb0990b964dc8fadf32ee2b76c30419c (diff)
downloadgemato-20301dd3d55c81e3655c367b4d74382cec499717.tar.gz
openpgp: Default stdin='' in _spawn_gpg()
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/testutil.py')
-rw-r--r--tests/testutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutil.py b/tests/testutil.py
index 572dad6..f95b274 100644
--- a/tests/testutil.py
+++ b/tests/testutil.py
@@ -141,7 +141,7 @@ class MockedWKDOpenPGPEnvironment(gemato.openpgp.OpenPGPEnvironment):
def clone(self):
return MockedWKDOpenPGPEnvironment(self.keys)
- def _spawn_gpg(self, argv, stdin):
+ def _spawn_gpg(self, argv, stdin=''):
if '--locate-keys' in argv:
argv.remove('--locate-keys')
assert len(argv) == 3