]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology/suite: patch builtin open method
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 21 Jan 2022 18:59:28 +0000 (13:59 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 24 May 2022 00:31:28 +0000 (20:31 -0400)
teuthology.suite.open does not patch properly.

Fixes: 0b822b8455a8b2903759776ff3c4ea05c416b44e
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
teuthology/suite/test/test_build_matrix.py
teuthology/test/test_describe_tests.py

index 9d41d8a9d2e4ccc940be313d633ec80dc78f1fcd..c6578415aecb087a3c2a9fa1aa53190ec1cba872 100644 (file)
@@ -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):
index 0110cc7bf10002bfc3ca0393948c589c971b7b73..c6577d66f3bbda718622811650577d47e43152d4 100644 (file)
@@ -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,