From: Sergey Matveev Date: Thu, 22 Apr 2021 18:39:23 +0000 (+0300) Subject: Py27 compatible test_pfx X-Git-Tag: 5.6~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=3d808c708d149b845af732b7700f3882e466b781;hp=141ec28f940fbba3edb67252bc4e8707502b87ce Py27 compatible test_pfx --- 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