Skip to content

Commit

Permalink
[#621] Solve pylint W1514 warnings in Compliance workflow
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mlasch committed Aug 25, 2021
1 parent ae806d6 commit 1224b91
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand All @@ -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"""
Expand All @@ -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
Expand Down

0 comments on commit 1224b91

Please sign in to comment.