Skip to content

Commit 78424fa

Browse files
ocelotllzchen
andauthored
Skip celery test case if running in PyPy (open-telemetry#2349)
Fixes open-telemetry#2348 Co-authored-by: Leighton Chen <[email protected]>
1 parent 1b68fdc commit 78424fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

instrumentation/opentelemetry-instrumentation-celery/tests/test_metrics.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import threading
22
import time
3+
from platform import python_implementation
34
from timeit import default_timer
45

6+
from pytest import mark
7+
58
from opentelemetry.instrumentation.celery import CeleryInstrumentor
69
from opentelemetry.test.test_base import TestBase
710

@@ -62,6 +65,9 @@ def test_basic_metric(self):
6265
est_value_delta=200,
6366
)
6467

68+
@mark.skipif(
69+
python_implementation() == "PyPy", reason="Fails randomly in pypy"
70+
)
6571
def test_metric_uninstrument(self):
6672
CeleryInstrumentor().instrument()
6773

0 commit comments

Comments
 (0)