Skip to content

Commit d77ebc3

Browse files
committed
Also use skipif
1 parent 752ce7d commit d77ebc3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

tests/integrations/featureflags/test_featureflags.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import concurrent.futures as cf
2+
import sys
3+
24
import pytest
35

46
import sentry_sdk
@@ -78,10 +80,11 @@ def task(flag_key):
7880
}
7981

8082

83+
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")
8184
def test_featureflags_integration_asyncio(
8285
sentry_init, capture_events, uninstall_integration
8386
):
84-
asyncio = pytest.importorskip("asyncio") # Only available in Python 3.7+.
87+
asyncio = pytest.importorskip("asyncio")
8588

8689
uninstall_integration(FeatureFlagsIntegration.identifier)
8790
sentry_init(integrations=[FeatureFlagsIntegration()])

tests/integrations/launchdarkly/test_launchdarkly.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import concurrent.futures as cf
2+
import sys
3+
24
import ldclient
35
import pytest
46

@@ -107,12 +109,13 @@ def task(flag_key):
107109
}
108110

109111

112+
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")
110113
def test_launchdarkly_integration_asyncio(
111114
sentry_init, capture_events, uninstall_integration
112115
):
113116
"""Assert concurrently evaluated flags do not pollute one another."""
114117

115-
asyncio = pytest.importorskip("asyncio") # Only available in Python 3.7+.
118+
asyncio = pytest.importorskip("asyncio")
116119

117120
td = TestData.data_source()
118121
client = LDClient(config=Config("sdk-key", update_processor_class=td))

tests/integrations/openfeature/test_openfeature.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import concurrent.futures as cf
2+
import sys
3+
24
import pytest
35

46
from openfeature import api
@@ -91,12 +93,13 @@ def task(flag):
9193
}
9294

9395

96+
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7 or higher")
9497
def test_openfeature_integration_asyncio(
9598
sentry_init, capture_events, uninstall_integration
9699
):
97100
"""Assert concurrently evaluated flags do not pollute one another."""
98101

99-
asyncio = pytest.importorskip("asyncio") # Only available in Python 3.7+.
102+
asyncio = pytest.importorskip("asyncio")
100103

101104
uninstall_integration(OpenFeatureIntegration.identifier)
102105
sentry_init(integrations=[OpenFeatureIntegration()])

0 commit comments

Comments
 (0)