]> www.wagner.pp.ru Git - oss/ctypescrypto.git/blobdiff - tests/testrand.py
Begin to implement python3 support. Now tests for oid, bio, cipher, digest, mac and...
[oss/ctypescrypto.git] / tests / testrand.py
index 853a4916f973716d2dbb85d8583b0e90dfc0e034..9f67f28425f4ad39c250c2e0fa5fb6151b5c9f27 100644 (file)
@@ -13,11 +13,11 @@ class TestRand(unittest.TestCase):
         b2=pseudo_bytes(100)
         self.assertNotEqual(b,b2)
     def test_seed(self):
-        b="aaqwrwfsagdsgdsfgdsfgdfsgdsfgdsgfdsfgdsfg"
+        b=b"aaqwrwfsagdsgdsfgdsfgdfsgdsfgdsgfdsfgdsfg"
         seed(b)
         # Check if no segfault here
     def test_entropy(self):
-        b="aaqwrwfsagdsgdsfgdsfgdfsgdsfgdsgfdsfgdsfg"
+        b=b"aaqwrwfsagdsgdsfgdsfgdfsgdsfgdsgfdsfgdsfg"
         seed(b,2.25)
         # Check if no segfault here
     def test_Status(self):