diff options
Diffstat (limited to 'tests/test_pkcs1.py')
-rw-r--r-- | tests/test_pkcs1.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_pkcs1.py b/tests/test_pkcs1.py index f2d4957..6b14d8f 100644 --- a/tests/test_pkcs1.py +++ b/tests/test_pkcs1.py @@ -20,7 +20,6 @@ import unittest import rsa from rsa import pkcs1 -from rsa._compat import byte class BinaryTest(unittest.TestCase): @@ -48,7 +47,7 @@ class BinaryTest(unittest.TestCase): self.assertIsInstance(a, int) altered_a = (a + 1) % 256 - encrypted = encrypted[:5] + byte(altered_a) + encrypted[6:] + encrypted = encrypted[:5] + bytes([altered_a]) + encrypted[6:] self.assertRaises(pkcs1.DecryptionError, pkcs1.decrypt, encrypted, self.priv) |