diff options
author | Brad Warren <bmw@users.noreply.github.com> | 2021-02-06 02:51:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 02:51:18 +0300 |
commit | 711cc95dc466c569c120bd7fcda8e67c135cb101 (patch) | |
tree | 1c4f3526b3eaed3e35ad6c4dcbfa920b85e134e8 /acme/tests/messages_test.py | |
parent | c2ee0d29382d9613cc3a8d4cee6cb4aa3ce239c4 (diff) |
Remove mock dependency (#8630)
Fixes https://github.com/certbot/certbot/issues/7913.
I only added the deprecation warning to `certbot.tests.util` because that's the only place where I think someone could be using the `mock` module through our API.
* remove external mock from acme
* update Certbot's mock usage
* remove mock dependency in plugins
* remove external mock from compatibility test
* add changelog entry
Diffstat (limited to 'acme/tests/messages_test.py')
-rw-r--r-- | acme/tests/messages_test.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/acme/tests/messages_test.py b/acme/tests/messages_test.py index 70b05b419..74d1737ec 100644 --- a/acme/tests/messages_test.py +++ b/acme/tests/messages_test.py @@ -1,11 +1,8 @@ """Tests for acme.messages.""" import unittest +from unittest import mock import josepy as jose -try: - import mock -except ImportError: # pragma: no cover - from unittest import mock # type: ignore from acme import challenges import test_util |