From e4275af65cf132d591347768db7a55ff1839f7dc Mon Sep 17 00:00:00 2001 From: Marc Lasch Date: Tue, 24 Aug 2021 14:12:28 +0200 Subject: [PATCH] [#621] Solve pylint W1514 warnings in Compliance workflow Use UTF-8 encoding in open() calls to comply with PEP-0597 in the integration tests. This will iron out the W1514 (unspecified-encoding) warnings from pylint in the Compliance workflow. Signed-off-by: Marc Lasch --- tests/integration/conftest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 1112d48c0..5a8601e3d 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -74,7 +74,8 @@ def __init__(self, arguments="", timeout=3, encoding="utf8"): # pylint: disable=consider-using-with self.pexpectobj.logfile = open(base_path + "/lwm2mserver_log.txt", - "w") + "w", + encoding="utf-8") class Lwm2mClient(HelperBase): """Client subclass of HelperBase""" @@ -88,7 +89,8 @@ def __init__(self, arguments="", timeout=3, encoding="utf8"): # pylint: disable=consider-using-with self.pexpectobj.logfile = open(base_path + "/lwm2mclient_log.txt", - "w") + "w", + encoding="utf-8") class Lwm2mBootstrapServer(HelperBase): """Bootstrap-server subclass of HelperBase""" @@ -103,7 +105,8 @@ def __init__(self, arguments="", timeout=3, encoding="utf8"): # pylint: disable=consider-using-with self.pexpectobj.logfile = open(base_path + "/lwm2mbootstrapserver_log.txt", - "w") + "w", + encoding="utf-8") @pytest.fixture