Skip to content

Commit de3cbed

Browse files
committed
Fix test versioning
1 parent 2800312 commit de3cbed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/asynchronous/test_async_contextvars_reset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
class TestAsyncContextVarsReset(AsyncIntegrationTest):
2929
async def test_context_vars_are_reset_in_executor(self):
30+
if sys.version_info < (3, 11):
31+
self.skipTest("Test requires asyncio.Task.get_context (added in Python 3.11)")
3032
client = self.simple_client()
3133

3234
await client.db.test.insert_one({"x": 1})

0 commit comments

Comments
 (0)