# coding: utf-8
# PyDERASN -- Python ASN.1 DER/CER/BER codec with abstract structures
-# Copyright (C) 2017-2020 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2017-2021 Sergey Matveev <stargrave@stargrave.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
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
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()
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