mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 00:02:14 -04:00
Add mock fallback
This commit is contained in:
parent
77970a452e
commit
65decc916a
1 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,10 @@ import tempfile
|
|||
import time
|
||||
import unittest
|
||||
|
||||
import mock
|
||||
try:
|
||||
import mock
|
||||
except ImportError: # pragma: no cover
|
||||
from unittest import mock # type: ignore
|
||||
# six is used in mock.patch()
|
||||
import six # pylint: disable=unused-import
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue