Skip to content

Commit 0cce179

Browse files
committed
Skip if 3.7 or pypy
1 parent 22a058c commit 0cce179

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

instrumentation/opentelemetry-instrumentation-urllib/tests/test_metrics_instrumentation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
from timeit import default_timer
1717
from urllib import request
1818
from urllib.parse import urlencode
19+
from pytest import mark
20+
from platform import python_implementation
21+
from sys import version_info
1922

2023
import httpretty
2124

@@ -185,6 +188,10 @@ def test_basic_metric_request_not_empty(self):
185188
),
186189
)
187190

191+
@skipif(
192+
python_implementation() == "PyPy" or version_info.minor == 7,
193+
resason"Fails randomly in 3.7 and pypy"
194+
)
188195
def test_metric_uninstrument(self):
189196
with request.urlopen(self.URL):
190197
metrics = self.get_sorted_metrics()

0 commit comments

Comments
 (0)