]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/tests/test_rest_client.py
import 15.2.0 Octopus source
[ceph.git] / ceph / src / pybind / mgr / dashboard / tests / test_rest_client.py
index 36ecd51a334b4612f553da146a72164bbeb94156..fc48f0eb0369bfd656f26065aa9705ab0522bcf2 100644 (file)
@@ -2,7 +2,11 @@
 import unittest
 import requests.exceptions
 
-from mock import patch
+try:
+    from mock import patch
+except ImportError:
+    from unittest.mock import patch
+
 from urllib3.exceptions import MaxRetryError, ProtocolError
 from .. import mgr
 from ..rest_client import RequestException, RestClient