1515 pass # All tests will be skipped with incompatible versions
1616
1717
18- minimum_python_37 = pytest .mark .skipif (
19- sys .version_info < (3 , 7 ), reason = "Asyncio tests need Python >= 3.7 "
18+ minimum_python_38 = pytest .mark .skipif (
19+ sys .version_info < (3 , 8 ), reason = "Asyncio tests need Python >= 3.8 "
2020)
2121
2222
@@ -49,7 +49,7 @@ def get_sentry_task_factory(mock_get_running_loop):
4949 return patched_factory
5050
5151
52- @minimum_python_37
52+ @minimum_python_38
5353@pytest .mark .asyncio (loop_scope = "module" )
5454async def test_create_task (
5555 sentry_init ,
@@ -92,7 +92,7 @@ async def test_create_task(
9292 )
9393
9494
95- @minimum_python_37
95+ @minimum_python_38
9696@pytest .mark .asyncio (loop_scope = "module" )
9797async def test_gather (
9898 sentry_init ,
@@ -134,7 +134,7 @@ async def test_gather(
134134 )
135135
136136
137- @minimum_python_37
137+ @minimum_python_38
138138@pytest .mark .asyncio (loop_scope = "module" )
139139async def test_exception (
140140 sentry_init ,
@@ -167,7 +167,7 @@ async def test_exception(
167167 assert error_event ["exception" ]["values" ][0 ]["mechanism" ]["type" ] == "asyncio"
168168
169169
170- @minimum_python_37
170+ @minimum_python_38
171171@pytest .mark .asyncio (loop_scope = "module" )
172172async def test_task_result (sentry_init ):
173173 sentry_init (
@@ -213,7 +213,7 @@ async def retrieve_value():
213213 assert retrieve_task .result () == "changed value"
214214
215215
216- @minimum_python_37
216+ @minimum_python_38
217217@patch ("asyncio.get_running_loop" )
218218def test_patch_asyncio (mock_get_running_loop ):
219219 """
@@ -232,7 +232,7 @@ def test_patch_asyncio(mock_get_running_loop):
232232 assert callable (sentry_task_factory )
233233
234234
235- @minimum_python_37
235+ @minimum_python_38
236236@patch ("asyncio.get_running_loop" )
237237@patch ("sentry_sdk.integrations.asyncio.Task" )
238238def test_sentry_task_factory_no_factory (MockTask , mock_get_running_loop ): # noqa: N803
@@ -261,7 +261,7 @@ def test_sentry_task_factory_no_factory(MockTask, mock_get_running_loop): # noq
261261 assert task_kwargs ["loop" ] == mock_loop
262262
263263
264- @minimum_python_37
264+ @minimum_python_38
265265@patch ("asyncio.get_running_loop" )
266266def test_sentry_task_factory_with_factory (mock_get_running_loop ):
267267 mock_loop = mock_get_running_loop .return_value
@@ -351,7 +351,7 @@ def test_sentry_task_factory_context_with_factory(mock_get_running_loop):
351351 assert task_factory_kwargs ["context" ] == mock_context
352352
353353
354- @minimum_python_37
354+ @minimum_python_38
355355@pytest .mark .asyncio (loop_scope = "module" )
356356async def test_span_origin (
357357 sentry_init ,
0 commit comments