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 14, 2024
1 parent 1e0b11f commit db4c0db
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import threading
import time
from platform import python_implementation
from timeit import default_timer

from pytest import mark

from opentelemetry.instrumentation.celery import CeleryInstrumentor
from opentelemetry.test.test_base import TestBase

Expand Down Expand Up @@ -62,6 +65,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 db4c0db

Please sign in to comment.