[gnome-keysign: 3/16] test_wormhole: Use unicode string for Python2 support
- From: Tobias Mueller <tobiasmue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 3/16] test_wormhole: Use unicode string for Python2 support
- Date: Tue, 1 Jan 2019 16:01:53 +0000 (UTC)
commit 2263e9e17bad09213fd5a11cd23552de412f8e37
Author: RyuzakiKK <aasonykk gmail com>
Date: Wed Dec 5 12:10:18 2018 +0100
test_wormhole: Use unicode string for Python2 support
Without this fix the test fails with the following message:
"exceptions.TypeError: normalize() argument 2 must be unicode,
not str"
tests/test_wormhole.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/test_wormhole.py b/tests/test_wormhole.py
index 9a07e3e..e3d71a8 100644
--- a/tests/test_wormhole.py
+++ b/tests/test_wormhole.py
@@ -80,7 +80,7 @@ def test_wrmhl_offline_code():
key = openpgpkey_from_data(data)
file_key_data = get_public_key_data(key.fingerprint)
# We assume that this channel, at execution time, is free
- code = "5556-penguin-paw-print"
+ code = u"5556-penguin-paw-print"
# Start offering the key
offer = WormholeOffer(key)
offer.allocate_code(code)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]