Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErica Portnoy <ebportnoy@gmail.com>2020-04-11 02:33:58 +0300
committerErica Portnoy <ebportnoy@gmail.com>2020-04-11 02:33:58 +0300
commit3c11d69f560ea7590b155509a0e3946752737479 (patch)
treed2f31c238140f911d2d1bfcbd7d7e57573544cd5 /certbot-apache/tests/centos_test.py
parentb25e971f546b1e10c5597908324d21a7621d988c (diff)
use unittest.mock when third-party mock isn't available in apache
Diffstat (limited to 'certbot-apache/tests/centos_test.py')
-rw-r--r--certbot-apache/tests/centos_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/certbot-apache/tests/centos_test.py b/certbot-apache/tests/centos_test.py
index 5e334c51e..4785b2863 100644
--- a/certbot-apache/tests/centos_test.py
+++ b/certbot-apache/tests/centos_test.py
@@ -1,7 +1,10 @@
"""Test for certbot_apache._internal.configurator for Centos overrides"""
import unittest
-import mock
+try:
+ import mock
+except ImportError: # pragma: no cover
+ from unittest import mock
from certbot import errors
from certbot.compat import filesystem