Skip to content

Commit

Permalink
Skip celery test case if running in PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Mar 13, 2024
1 parent 1e0b11f commit aea617c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import threading
import time
from timeit import default_timer
from pytest import mark
from platform import python_implementation

from opentelemetry.instrumentation.celery import CeleryInstrumentor
from opentelemetry.test.test_base import TestBase
Expand Down Expand Up @@ -62,6 +64,9 @@ def test_basic_metric(self):
est_value_delta=200,
)

@mark.skipif(
python_implementation() == "PyPy", reason="Fails randomly in pypy"
)
def test_metric_uninstrument(self):
CeleryInstrumentor().instrument()

Expand Down

0 comments on commit aea617c

Please sign in to comment.