From 34691fe558001b2ae4b29f01803cf43763245bde Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Thu, 12 Mar 2020 15:25:08 -0700 Subject: [PATCH] patch builtins open --- certbot-apache/tests/configurator_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-apache/tests/configurator_test.py b/certbot-apache/tests/configurator_test.py index 8301def52..a9af7c443 100644 --- a/certbot-apache/tests/configurator_test.py +++ b/certbot-apache/tests/configurator_test.py @@ -1840,7 +1840,7 @@ class InstallSslOptionsConfTest(util.ApacheTest): def test_open_module_file(self): mock_open = mock.mock_open(read_data="testing 12 3") - with mock.patch("certbot_apache._internal.configurator.open", mock_open): + with mock.patch("six.moves.builtins.open", mock_open): self.assertEqual (self.config._open_module_file("/nonsense/"), "testing 12 3") if __name__ == "__main__":