diff options
author | Erica Portnoy <ebportnoy@gmail.com> | 2020-04-11 02:33:58 +0300 |
---|---|---|
committer | Erica Portnoy <ebportnoy@gmail.com> | 2020-04-11 02:33:58 +0300 |
commit | 3c11d69f560ea7590b155509a0e3946752737479 (patch) | |
tree | d2f31c238140f911d2d1bfcbd7d7e57573544cd5 /certbot-apache/tests/parser_test.py | |
parent | b25e971f546b1e10c5597908324d21a7621d988c (diff) |
use unittest.mock when third-party mock isn't available in apache
Diffstat (limited to 'certbot-apache/tests/parser_test.py')
-rw-r--r-- | certbot-apache/tests/parser_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/certbot-apache/tests/parser_test.py b/certbot-apache/tests/parser_test.py index 299eb4567..9cfbea3c9 100644 --- a/certbot-apache/tests/parser_test.py +++ b/certbot-apache/tests/parser_test.py @@ -2,7 +2,10 @@ import shutil import unittest -import mock +try: + import mock +except ImportError: # pragma: no cover + from unittest import mock from certbot import errors from certbot.compat import os |