From 663051a4aef29d44161f07c4d6e089c02700dfab Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Fri, 21 Jan 2022 13:59:28 -0500 Subject: [PATCH] teuthology/suite: patch builtin open method teuthology.suite.open does not patch properly. Fixes: 0b822b8455a8b2903759776ff3c4ea05c416b44e Signed-off-by: Patrick Donnelly --- teuthology/suite/test/test_build_matrix.py | 4 ++-- teuthology/test/test_describe_tests.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/teuthology/suite/test/test_build_matrix.py b/teuthology/suite/test/test_build_matrix.py index 9d41d8a9d2..c6578415ae 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', - 'teuthology.suite.open', + 'builtins.open', ] def setup(self): @@ -629,7 +629,7 @@ class TestSubset(object): 'os.listdir', 'os.path.isfile', 'os.path.isdir', - 'teuthology.suite.open', + 'builtins.open', ] def setup(self): diff --git a/teuthology/test/test_describe_tests.py b/teuthology/test/test_describe_tests.py index 0110cc7bf1..c6577d66f3 100644 --- a/teuthology/test/test_describe_tests.py +++ b/teuthology/test/test_describe_tests.py @@ -137,6 +137,7 @@ class TestDescribeTests(object): 'os.listdir': listdir, 'os.path.isdir': isdir, 'teuthology.describe_tests.open': open, + 'builtins.open': open, 'os.path.exists': exists, 'os.listdir': listdir, 'os.path.isfile': isfile, -- 2.39.5