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__":