Skip to content

Commit 42b18bd

Browse files
committed
Peg APM tests to py 3.6+ only
1 parent d9ab83b commit 42b18bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_apm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
from .compat import StringIO
2828

2929

30+
# elasticapm only supports python 3.6+
31+
if sys.version_info < (3, 6):
32+
pytestmark = [pytest.mark.skip]
33+
34+
3035
def test_elasticapm_structlog_log_correlation_ecs_fields(spec_validator, apm):
3136
stream = StringIO()
3237
logger = structlog.PrintLogger(stream)
@@ -60,9 +65,6 @@ def test_elasticapm_structlog_log_correlation_ecs_fields(spec_validator, apm):
6065
}
6166

6267

63-
@pytest.mark.skipif(
64-
sys.version_info < (3, 2), reason="elastic-apm uses logger factory in Python 3.2+"
65-
)
6668
def test_elastic_apm_stdlib_no_filter_log_correlation_ecs_fields(apm):
6769
stream = StringIO()
6870
logger = logging.getLogger("apm-logger")

0 commit comments

Comments
 (0)