]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - tests/test_crl.py
Remove Py27 compatibility
[pyderasn.git] / tests / test_crl.py
index 5c5b484b0aa4295365066b8925987f2cc67c1700..9dc5c002d5112b37b91094d348795ce4d389ac53 100644 (file)
@@ -24,8 +24,6 @@ from time import time
 from unittest import skipIf
 from unittest import TestCase
 
-from six import PY2
-
 from pyderasn import BitString
 from pyderasn import encode_cer
 from pyderasn import file_mmaped
@@ -104,7 +102,6 @@ class TestCACert(TestCase):
         print("CER decoded", time() - start)
         self.assertEqual(crl2, crl1)
 
-    @skipIf(PY2, "Py27 mmap does not implement buffer protocol")
     def test_mmaped(self):
         fd = open(CRL_PATH, "rb")
         start = time()
@@ -113,7 +110,7 @@ class TestCACert(TestCase):
 
     def test_evgens(self):
         fd = open(CRL_PATH, "rb")
-        raw = memoryview(fd.read()) if PY2 else file_mmaped(fd)
+        raw = file_mmaped(fd)
         print("CRL opened")
         evgens_count = 0
         revoked_certs_count = 0