Skip to content

Commit b696c3b

Browse files
authored
Skip test for PyPy and Windows (#3670)
This test fails randomly when ran under those conditions Fixes #3669
1 parent d270d41 commit b696c3b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

opentelemetry-sdk/tests/trace/test_span_processor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
import time
1717
import typing
1818
import unittest
19+
from platform import python_implementation, system
1920
from threading import Event
2021
from typing import Optional
2122
from unittest import mock
2223

24+
from pytest import mark
25+
2326
from opentelemetry import trace as trace_api
2427
from opentelemetry.context import Context
2528
from opentelemetry.sdk import trace
@@ -266,6 +269,10 @@ def create_multi_span_processor(
266269
) -> trace.ConcurrentMultiSpanProcessor:
267270
return trace.ConcurrentMultiSpanProcessor(3)
268271

272+
@mark.skipif(
273+
python_implementation() == "PyPy" and system() == "Windows",
274+
reason="This test randomly fails in Windows with PyPy",
275+
)
269276
def test_force_flush_late_by_timeout(self):
270277
multi_processor = trace.ConcurrentMultiSpanProcessor(5)
271278
wait_event = Event()

0 commit comments

Comments
 (0)