X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=blobdiff_plain;f=tests%2Ftest_crl.py;fp=tests%2Ftest_crl.py;h=9dc5c002d5112b37b91094d348795ce4d389ac53;hp=5c5b484b0aa4295365066b8925987f2cc67c1700;hb=6ffa181faaed35d38e9057c473363b5b6e44efd6;hpb=eda9a545dda258ca202cb812633239eefeb2c5d6 diff --git a/tests/test_crl.py b/tests/test_crl.py index 5c5b484..9dc5c00 100644 --- a/tests/test_crl.py +++ b/tests/test_crl.py @@ -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