Skip to content

Commit 4f83b73

Browse files
authored
Skip test case when it runs under Windows and PyPy (#3065)
1 parent 90a0b68 commit 4f83b73

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

opentelemetry-sdk/tests/trace/export/test_export.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
import unittest
2020
from concurrent.futures import ThreadPoolExecutor
2121
from logging import WARNING
22-
from platform import python_implementation
22+
from platform import python_implementation, system
2323
from unittest import mock
2424

25-
from flaky import flaky
25+
from pytest import mark
2626

2727
from opentelemetry import trace as trace_api
2828
from opentelemetry.context import Context
@@ -442,6 +442,10 @@ def test_batch_span_processor_scheduled_delay(self):
442442

443443
span_processor.shutdown()
444444

445+
@mark.skipif(
446+
python_implementation() == "PyPy" and system() == "Windows",
447+
reason="This test randomly fails in Windows with PyPy",
448+
)
445449
def test_batch_span_processor_reset_timeout(self):
446450
"""Test that the scheduled timeout is reset on cycles without spans"""
447451
spans_names_list = []
@@ -480,11 +484,6 @@ def test_batch_span_processor_reset_timeout(self):
480484

481485
span_processor.shutdown()
482486

483-
if python_implementation() == "PyPy":
484-
test_batch_span_processor_reset_timeout = flaky(
485-
max_runs=2, min_passes=1
486-
)(test_batch_span_processor_reset_timeout)
487-
488487
def test_batch_span_processor_parameters(self):
489488
# zero max_queue_size
490489
self.assertRaises(

0 commit comments

Comments
 (0)