mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Add mock fallback
This commit is contained in:
parent
9637a35b9b
commit
a0d02e7a06
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