diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-11-09 11:22:02 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-11-09 13:21:47 +0100 |
commit | 17739d718901a10f7ec0aaf9a6d53141294a347d (patch) | |
tree | a98e6d09a42016ceec90713adac681918a4a9c62 /xtesting/tests/unit/ci | |
parent | 92681911699428a87ea56c0263832b96a93da3da (diff) |
Leverage latest pylint features
It adds encoding in all open call and leverage f-strings.
Change-Id: I70ccd2bfcadae44929d5874f98fa3bf4ff644488
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/tests/unit/ci')
-rw-r--r-- | xtesting/tests/unit/ci/test_run_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtesting/tests/unit/ci/test_run_tests.py b/xtesting/tests/unit/ci/test_run_tests.py index b206a493..e2a2712c 100644 --- a/xtesting/tests/unit/ci/test_run_tests.py +++ b/xtesting/tests/unit/ci/test_run_tests.py @@ -100,7 +100,7 @@ class RunTestsTesting(unittest.TestCase): mock_method.return_value.__iter__ = lambda self: iter( self.readline, '') self.runner.source_envfile(envfile) - mock_method.assert_called_once_with(envfile, 'r') + mock_method.assert_called_once_with(envfile, 'r', encoding='utf-8') self.assertEqual(os.environ[key], value) def test_source_envfile(self): |