From 3d808c708d149b845af732b7700f3882e466b781 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 22 Apr 2021 21:39:23 +0300 Subject: [PATCH] Py27 compatible test_pfx --- pygost/test_pfx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygost/test_pfx.py b/pygost/test_pfx.py index 618799a..2e2c76f 100644 --- a/pygost/test_pfx.py +++ b/pygost/test_pfx.py @@ -234,7 +234,7 @@ class TestPFX2020(TestCase): ca_pub = gost3410.pub_unmarshal(bytes(OctetString().decod(bytes( ca_cert["tbsCertificate"]["subjectPublicKeyInfo"]["subjectPublicKey"] )))) - password = "Пароль для PFX".encode("utf-8") + password = u"Пароль для PFX".encode("utf-8") cert_test = Certificate().decod(b64decode(b""" MIICLjCCAdugAwIBAgIEAYy6hDAKBggqhQMHAQEDAjA4MQ0wCwYDVQQKEwRUSzI2MS cwJQYDVQQDEx5DQSBUSzI2OiBHT1NUIDM0LjEwLTEyIDI1Ni1iaXQwHhcNMDEwMTAx -- 2.44.0