Skip to content

Commit 96b3a13

Browse files
committed
Skip the tests below Python 3.7
1 parent 194b939 commit 96b3a13

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sentry_sdk/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ def capture_log(self, scope, severity_text, severity_number, template, **kwargs)
896896
"trace_id": None,
897897
} # type: Log
898898

899+
# If debug is enabled, log the log to the console
899900
debug = self.options.get("debug", False)
900901
if debug:
901902
severity_text_to_logging_level = {

tests/test_logs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import sys
12
from unittest import mock
3+
import pytest
24

35
import sentry_sdk
46
from sentry_sdk import _experimental_logger as sentry_logger
57

8+
if sys.version_info < (3, 7):
9+
pytest.skip("requires python3.7 or higher")
10+
611

712
def test_logs_disabled_by_default(sentry_init, capture_envelopes):
813
sentry_init()

0 commit comments

Comments
 (0)