aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/cnf_conformance
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-09-11 10:24:53 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-09-11 10:55:16 +0200
commitd2d72bbb71c3f772d099765ba1b06f8cf3060392 (patch)
treef7ea35807ea8a1757116507199d83cd952111515 /functest_kubernetes/cnf_conformance
parent9dae8dbe3cbfcac3d0fbf4a6b4421fa7eb8b2175 (diff)
Set encoding utf-8 when opening file
Change-Id: I4e756552173247499ba882bfee4fbe8738fbae3d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 5a565816e30dcb5aefb2feb33acce7ef7a457cc0)
Diffstat (limited to 'functest_kubernetes/cnf_conformance')
-rw-r--r--functest_kubernetes/cnf_conformance/conformance.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/functest_kubernetes/cnf_conformance/conformance.py b/functest_kubernetes/cnf_conformance/conformance.py
index fa174f1a..2cf4baa9 100644
--- a/functest_kubernetes/cnf_conformance/conformance.py
+++ b/functest_kubernetes/cnf_conformance/conformance.py
@@ -76,7 +76,8 @@ class CNFConformance(testcase.TestCase):
lfiles = glob.glob(os.path.join(
self.src_dir, 'results', 'cnf-testsuite-results-*.yml'))
results = max(lfiles, key=os.path.getmtime)
- with open(os.path.join(self.src_dir, 'results', results)) as yfile:
+ with open(os.path.join(
+ self.src_dir, 'results', results), encoding='utf-8') as yfile:
self.details = yaml.safe_load(yfile)
msg = prettytable.PrettyTable(
header_style='upper', padding_width=5,