File python-opentracing-no-mock.patch of Package python-opentracing
Index: opentracing-2.4.0/tests/test_globaltracer.py
===================================================================
--- opentracing-2.4.0.orig/tests/test_globaltracer.py 2020-11-19 18:03:16.000000000 +0100
+++ opentracing-2.4.0/tests/test_globaltracer.py 2022-03-24 12:00:44.458003441 +0100
@@ -14,7 +14,7 @@
from __future__ import absolute_import
import pytest
-import mock
+import unittest.mock as mock
import opentracing
Index: opentracing-2.4.0/tests/test_noop_span.py
===================================================================
--- opentracing-2.4.0.orig/tests/test_noop_span.py 2020-11-19 18:03:16.000000000 +0100
+++ opentracing-2.4.0/tests/test_noop_span.py 2022-03-24 12:01:09.994156138 +0100
@@ -13,7 +13,7 @@
# limitations under the License.
from __future__ import absolute_import
-import mock
+import unittest.mock as mock
import time
import types
from opentracing import child_of
Index: opentracing-2.4.0/tests/test_scope.py
===================================================================
--- opentracing-2.4.0.orig/tests/test_scope.py 2020-11-19 18:03:16.000000000 +0100
+++ opentracing-2.4.0/tests/test_scope.py 2022-03-24 12:01:33.282295392 +0100
@@ -20,7 +20,7 @@
from __future__ import absolute_import
-import mock
+import unittest.mock as mock
import types
from opentracing.scope_manager import ScopeManager
Index: opentracing-2.4.0/opentracing/harness/api_check.py
===================================================================
--- opentracing-2.4.0.orig/opentracing/harness/api_check.py 2020-11-19 18:03:16.000000000 +0100
+++ opentracing-2.4.0/opentracing/harness/api_check.py 2022-03-24 12:03:38.491044075 +0100
@@ -14,7 +14,7 @@
from __future__ import absolute_import
-import mock
+import unittest.mock as mock
import time
import pytest
Index: opentracing-2.4.0/opentracing/harness/scope_check.py
===================================================================
--- opentracing-2.4.0.orig/opentracing/harness/scope_check.py 2020-11-19 18:03:16.000000000 +0100
+++ opentracing-2.4.0/opentracing/harness/scope_check.py 2022-03-24 12:04:05.699206774 +0100
@@ -19,7 +19,7 @@
# THE SOFTWARE.
from __future__ import absolute_import
-import mock
+import unittest.mock as mock
from opentracing.span import Span