Skip to content

Commit 8b2cd41

Browse files
committed
sdk: skip test_batch_span_processor_scheduled_delay on pypy / windows
It happened that tests failed because the delay was fired some microseconds earlier: > self.assertGreaterEqual((export_time - start_time) * 1e3, 500) E AssertionError: 499.9737739562988 not greater than or equal to 500 We should probably revise all these skip on Windows Pypy once we have a Python 3.9 baseline and Pypy >= 7.3.12. Fix #3911
1 parent 4febd33 commit 8b2cd41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ def _target():
461461

462462
span_processor.shutdown()
463463

464+
@mark.skipif(
465+
python_implementation() == "PyPy" and system() == "Windows",
466+
reason="This test randomly fails in Windows with PyPy",
467+
)
464468
def test_batch_span_processor_scheduled_delay(self):
465469
"""Test that spans are exported each schedule_delay_millis"""
466470
spans_names_list = []

0 commit comments

Comments
 (0)