File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
opentelemetry-sdk/tests/trace/export Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 19
19
import unittest
20
20
from concurrent .futures import ThreadPoolExecutor
21
21
from logging import WARNING
22
- from platform import python_implementation
22
+ from platform import python_implementation , system
23
23
from unittest import mock
24
24
25
- from flaky import flaky
25
+ from pytest import mark
26
26
27
27
from opentelemetry import trace as trace_api
28
28
from opentelemetry .context import Context
@@ -442,6 +442,10 @@ def test_batch_span_processor_scheduled_delay(self):
442
442
443
443
span_processor .shutdown ()
444
444
445
+ @mark .skipif (
446
+ python_implementation () == "PyPy" and system () == "Windows" ,
447
+ reason = "This test randomly fails in Windows with PyPy" ,
448
+ )
445
449
def test_batch_span_processor_reset_timeout (self ):
446
450
"""Test that the scheduled timeout is reset on cycles without spans"""
447
451
spans_names_list = []
@@ -480,11 +484,6 @@ def test_batch_span_processor_reset_timeout(self):
480
484
481
485
span_processor .shutdown ()
482
486
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
-
488
487
def test_batch_span_processor_parameters (self ):
489
488
# zero max_queue_size
490
489
self .assertRaises (
You can’t perform that action at this time.
0 commit comments