From 4deae5065d1d197bf41703e40e626040d0c20313 Mon Sep 17 00:00:00 2001 From: euri10 Date: Thu, 9 Nov 2023 09:12:31 +0100 Subject: [PATCH] attempt on win32 errors --- tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index f7291a0..2d47bc3 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,6 @@ def _get_cert_data(filepath): "Returns the filepath content as bytes" - with open(filepath, "rb") as fobj: + with open(filepath, "rb", encoding="utf-8") as fobj: return fobj.read()