[gnome-keysign: 68/75] tests: mks: strip keydata when read
- From: Gitlab System User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 68/75] tests: mks: strip keydata when read
- Date: Fri, 29 Sep 2017 11:28:03 +0000 (UTC)
commit 7d3af2a3fe6cfa48a2733f084d16dcb24b1cd7f4
Author: Tobias Mueller <muelli cryptobitch de>
Date: Thu Sep 21 23:02:05 2017 +0200
tests: mks: strip keydata when read
The problem seems to be lying in pgpy. The symptom is a hanging test.
Quite annoying giving that you cannot easily break and enter a debugger,
because nose catches Ctrl+C. With this change, pgpy is more happy.
tests/test_gpgmks.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/tests/test_gpgmks.py b/tests/test_gpgmks.py
index 1bb9f3a..1992af2 100644
--- a/tests/test_gpgmks.py
+++ b/tests/test_gpgmks.py
@@ -249,6 +249,9 @@ class TestSignAndEncrypt:
def test_sign_and_encrypt(self):
keydata = open(self.sender_key, "rb").read()
+ # for some reason pgpy does not like the stray data before
+ # https://github.com/SecurityInnovation/PGPy/issues/218
+ keydata = keydata[keydata.index('-----'):]
keys = get_usable_keys(homedir=self.sender_homedir)
assert_equals(1, len(keys))
key = keys[0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]