Skip to content

Commit

Permalink
Skip celery test case if running in PyPy (#2349)
Browse files Browse the repository at this point in the history
Fixes #2348

Co-authored-by: Leighton Chen <[email protected]>
  • Loading branch information
ocelotl and lzchen authored Mar 19, 2024
1 parent 1b68fdc commit 78424fa
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 78424fa

Please sign in to comment.