diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_connection.py elasticsearch-py-7.6.0/test_elasticsearch/test_connection.py --- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_connection.py 2022-05-23 13:53:49.850202688 +0200 +++ elasticsearch-py-7.6.0/test_elasticsearch/test_connection.py 2022-05-23 13:53:49.862202756 +0200 @@ -2,7 +2,7 @@ import re import ssl import gzip import io -from mock import Mock, patch +from unittest.mock import Mock, patch import urllib3 import warnings from requests.auth import AuthBase diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_helpers.py elasticsearch-py-7.6.0/test_elasticsearch/test_helpers.py --- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_helpers.py 2022-05-23 13:53:49.846202666 +0200 +++ elasticsearch-py-7.6.0/test_elasticsearch/test_helpers.py 2022-05-23 13:53:49.862202756 +0200 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import mock +from unittest import mock import time import threading from unittest import SkipTest diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_server/test_helpers.py elasticsearch-py-7.6.0/test_elasticsearch/test_server/test_helpers.py --- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_server/test_helpers.py 2022-05-23 13:53:49.846202666 +0200 +++ elasticsearch-py-7.6.0/test_elasticsearch/test_server/test_helpers.py 2022-05-23 13:53:49.862202756 +0200 @@ -1,4 +1,4 @@ -from mock import patch +from unittest.mock import patch from elasticsearch import helpers, TransportError from elasticsearch.helpers import ScanError diff -upr elasticsearch-py-7.6.0.orig/test_elasticsearch/test_transport.py elasticsearch-py-7.6.0/test_elasticsearch/test_transport.py --- elasticsearch-py-7.6.0.orig/test_elasticsearch/test_transport.py 2022-05-23 13:53:49.850202688 +0200 +++ elasticsearch-py-7.6.0/test_elasticsearch/test_transport.py 2022-05-23 13:53:49.862202756 +0200 @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals import time -from mock import patch +from unittest.mock import patch from elasticsearch.transport import Transport, get_host_info from elasticsearch.connection import Connection