From 0b822b8455a8b2903759776ff3c4ea05c416b44e Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Wed, 20 Nov 2019 01:01:29 +0100 Subject: [PATCH] suite/matrix: make test_build_matrix py3 compat Signed-off-by: Kyr Shatskyy --- teuthology/suite/test/test_build_matrix.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/teuthology/suite/test/test_build_matrix.py b/teuthology/suite/test/test_build_matrix.py index aaaa4a11e8..d0476c3461 100644 --- a/teuthology/suite/test/test_build_matrix.py +++ b/teuthology/suite/test/test_build_matrix.py @@ -24,7 +24,7 @@ class TestBuildMatrix(object): 'os.listdir', 'os.path.isfile', 'os.path.isdir', - '__builtin__.open', + 'teuthology.suite.open', ] def setup(self): @@ -582,7 +582,7 @@ class TestSubset(object): 'os.listdir', 'os.path.isfile', 'os.path.isdir', - '__builtin__.open', + 'teuthology.suite.open', ] def setup(self): @@ -637,9 +637,9 @@ class TestSubset(object): sub_max_facets, max_fanout, max_depth - 1, namegen, top=False) if subtree is not None: - tree[namegen.next()] = subtree + tree[next(namegen)] = subtree else: - tree[yamilify(namegen.next())] = None + tree[yamilify(next(namegen))] = None random.choice([ lambda: tree.update({'%': None}), lambda: None])() -- 2.39.5