1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
Description: Use mock from unittest
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-08-28
--- python-opentracing-2.4.0.orig/opentracing/harness/api_check.py
+++ python-opentracing-2.4.0/opentracing/harness/api_check.py
@@ -14,7 +14,7 @@
from __future__ import absolute_import
-import mock
+from unittest import mock
import time
import pytest
--- python-opentracing-2.4.0.orig/opentracing/harness/scope_check.py
+++ python-opentracing-2.4.0/opentracing/harness/scope_check.py
@@ -19,7 +19,7 @@
# THE SOFTWARE.
from __future__ import absolute_import
-import mock
+from unittest import mock
from opentracing.span import Span
--- python-opentracing-2.4.0.orig/tests/test_globaltracer.py
+++ python-opentracing-2.4.0/tests/test_globaltracer.py
@@ -14,7 +14,7 @@
from __future__ import absolute_import
import pytest
-import mock
+from unittest import mock
import opentracing
--- python-opentracing-2.4.0.orig/tests/test_noop_span.py
+++ python-opentracing-2.4.0/tests/test_noop_span.py
@@ -13,7 +13,7 @@
# limitations under the License.
from __future__ import absolute_import
-import mock
+from unittest import mock
import time
import types
from opentracing import child_of
--- python-opentracing-2.4.0.orig/tests/test_scope.py
+++ python-opentracing-2.4.0/tests/test_scope.py
@@ -20,7 +20,7 @@
from __future__ import absolute_import
-import mock
+from unittest import mock
import types
from opentracing.scope_manager import ScopeManager
|