From 7e7c1375f657b34515f3a39086a2b8d27d4a239d Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 17 Feb 2020 16:02:23 +0300 Subject: [PATCH] Omit writer keyword, as it is the only argument --- tests/test_cms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_cms.py b/tests/test_cms.py index ac9726f..faa52ab 100644 --- a/tests/test_cms.py +++ b/tests/test_cms.py @@ -277,7 +277,7 @@ class TestSignedDataCERWithOpenSSL(TestCase): )) cms_path = self.tmpfile() with io_open(cms_path, "wb") as fd: - ci.encode_cer(writer=fd.write) + ci.encode_cer(fd.write) self.verify(cert_path, cms_path) fd = open(cms_path, "rb") raw = memoryview(fd.read()) if PY2 else file_mmaped(fd) @@ -321,7 +321,7 @@ class TestSignedDataCERWithOpenSSL(TestCase): )) eci_path = self.tmpfile() with open(eci_path, "wb") as fd: - OctetString(eci["eContent"]).encode_cer(writer=fd.write) + OctetString(eci["eContent"]).encode_cer(fd.write) print("ECI file written", time() - start) eci_fd = open(eci_path, "rb") eci_raw = file_mmaped(eci_fd) @@ -373,6 +373,6 @@ class TestSignedDataCERWithOpenSSL(TestCase): )) cms_path = self.tmpfile() with io_open(cms_path, "wb") as fd: - ci.encode_cer(writer=fd.write) + ci.encode_cer(fd.write) print("CMS written", time() - start) self.verify(cert_path, cms_path) -- 2.44.0