Skip to content

Commit 344cedc

Browse files
committed
opentelemetry-util-genai: skip flaky upload test on pypy
1 parent 1923343 commit 344cedc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

util/opentelemetry-util-genai/tests/test_upload.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
import threading
2121
import time
2222
from contextlib import contextmanager
23+
from platform import python_implementation
2324
from typing import Any
24-
from unittest import TestCase
25+
from unittest import TestCase, skipIf
2526
from unittest.mock import ANY, MagicMock, patch
2627

2728
import fsspec
@@ -148,6 +149,9 @@ def blocked_upload(*args: Any, **kwargs: Any):
148149
def test_shutdown_no_items(self):
149150
self.hook.shutdown()
150151

152+
@skipIf(
153+
python_implementation().lower() == "pypy", "fails randomly on pypy"
154+
)
151155
def test_upload_then_shutdown(self):
152156
self.hook.on_completion(
153157
inputs=FAKE_INPUTS,

0 commit comments

Comments
 (0)