From 14bbbff74272b65501aeb7c5ccd89bf1067cc8b4 Mon Sep 17 00:00:00 2001 From: cis-kuldeep Date: Fri, 30 Jul 2021 18:41:26 +0530 Subject: [PATCH] fixed py3 warnings: now using bytes() instead of str() --- src/tests/test_blindsig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_blindsig.py b/src/tests/test_blindsig.py index 4994d87c..ad6673e7 100644 --- a/src/tests/test_blindsig.py +++ b/src/tests/test_blindsig.py @@ -197,7 +197,7 @@ class TestBlindSig(unittest.TestCase): output.extend(pubkey) output.extend(signature) signer_obj = child_obj - verifychain = ECCBlindChain(ca=ca.pubkey(), chain=str(output)) + verifychain = ECCBlindChain(ca=ca.pubkey(), chain=bytes(output)) self.assertFalse(verifychain.verify(msg, 1)) def test_blind_sig_chain_wrong_msg(self): # pylint: disable=too-many-locals @@ -232,7 +232,7 @@ class TestBlindSig(unittest.TestCase): output.extend(pubkey) output.extend(signature) signer_obj = child_obj - verifychain = ECCBlindChain(ca=ca.pubkey(), chain=str(output)) + verifychain = ECCBlindChain(ca=ca.pubkey(), chain=bytes(output)) self.assertFalse(verifychain.verify(fake_msg, 1)) def test_blind_sig_chain_wrong_intermediary(self): # pylint: disable=too-many-locals @@ -270,5 +270,5 @@ class TestBlindSig(unittest.TestCase): output.extend(pubkey) output.extend(signature) signer_obj = child_obj - verifychain = ECCBlindChain(ca=ca.pubkey(), chain=str(output)) + verifychain = ECCBlindChain(ca=ca.pubkey(), chain=bytes(output)) self.assertFalse(verifychain.verify(msg, 1))