File: do-not-import-from-mock.patch

package info (click to toggle)
python-jaeger-client 4.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 940 kB
  • sloc: python: 5,578; makefile: 93; sh: 26; awk: 16
file content (142 lines) | stat: -rw-r--r-- 3,987 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
Description: Do not import from mock
Forwarded: no
Last-Update: 2024-08-28

--- python-jaeger-client-4.8.0.orig/tests/conftest.py
+++ python-jaeger-client-4.8.0/tests/conftest.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import mock
+from unittest import mock
 import pytest
 from jaeger_client import ConstSampler, Tracer
 from tornado.httpclient import AsyncHTTPClient
--- python-jaeger-client-4.8.0.orig/tests/test_codecs.py
+++ python-jaeger-client-4.8.0/tests/test_codecs.py
@@ -17,7 +17,7 @@ import unittest
 from collections import namedtuple
 from itertools import product
 
-import mock
+from unittest import mock
 import pytest
 from jaeger_client import Span, SpanContext, Tracer, ConstSampler
 from jaeger_client.codecs import (
--- python-jaeger-client-4.8.0.orig/tests/test_crossdock.py
+++ python-jaeger-client-4.8.0/tests/test_crossdock.py
@@ -13,12 +13,12 @@
 # limitations under the License.
 
 
-import mock
+from unittest import mock
 import json
 import os
 import pytest
 import opentracing
-from mock import MagicMock
+from unittest.mock import MagicMock
 from tornado.httpclient import HTTPRequest
 from jaeger_client import Tracer, ConstSampler
 from jaeger_client.reporter import InMemoryReporter
--- python-jaeger-client-4.8.0.orig/tests/test_metrics.py
+++ python-jaeger-client-4.8.0/tests/test_metrics.py
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 
-import mock
+from unittest import mock
 
 from jaeger_client.metrics import MetricsFactory, Metrics,\
     LegacyMetricsFactory
--- python-jaeger-client-4.8.0.orig/tests/test_rate_limiter.py
+++ python-jaeger-client-4.8.0/tests/test_rate_limiter.py
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 import time
-import mock
+from unittest import mock
 
 from jaeger_client.rate_limiter import RateLimiter
 
--- python-jaeger-client-4.8.0.orig/tests/test_reporter.py
+++ python-jaeger-client-4.8.0/tests/test_reporter.py
@@ -17,7 +17,7 @@ import logging
 import time
 import collections
 
-import mock
+from unittest import mock
 import pytest
 import tornado.gen
 import jaeger_client.reporter
--- python-jaeger-client-4.8.0.orig/tests/test_sampler.py
+++ python-jaeger-client-4.8.0/tests/test_sampler.py
@@ -14,7 +14,7 @@
 
 import time
 import math
-import mock
+from unittest import mock
 import pytest
 
 from jaeger_client.sampler import (
--- python-jaeger-client-4.8.0.orig/tests/test_span.py
+++ python-jaeger-client-4.8.0/tests/test_span.py
@@ -16,7 +16,7 @@
 import time
 import collections
 import json
-import mock
+from unittest import mock
 
 from opentracing.ext import tags as ext_tags
 from jaeger_client import Span, SpanContext, ConstSampler
--- python-jaeger-client-4.8.0.orig/tests/test_throttler.py
+++ python-jaeger-client-4.8.0/tests/test_throttler.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import mock
+from unittest import mock
 import time
 
 from jaeger_client.throttler import RemoteThrottler
--- python-jaeger-client-4.8.0.orig/tests/test_traceback_log.py
+++ python-jaeger-client-4.8.0/tests/test_traceback_log.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import mock
+from unittest import mock
 from jaeger_client import Span, SpanContext
 
 
--- python-jaeger-client-4.8.0.orig/tests/test_tracer.py
+++ python-jaeger-client-4.8.0/tests/test_tracer.py
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import mock
+from unittest import mock
 import random
 import socket
 
--- python-jaeger-client-4.8.0.orig/tests/test_utils.py
+++ python-jaeger-client-4.8.0/tests/test_utils.py
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 
-import mock
+from unittest import mock
 import unittest
 
 from jaeger_client import utils