Skip to content

Commit

Permalink
add python 3.11 tests
Browse files Browse the repository at this point in the history
uvloop is disabled on python 3.11 for now due to cython incompatibility.
a new cython version has since been released but uvloop needs to be built against this new cython version.
see MagicStack/uvloop#450 and MagicStack/uvloop#459
  • Loading branch information
Nothing4You committed Jan 31, 2022
1 parent c9e349d commit 3468792
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- '3.8'
- '3.9'
- '3.10'
# - '3.11.0-alpha.4'
- '3.11.0-alpha.4'
db:
- [mysql, '5.7']
- [mysql, '8.0']
Expand Down
12 changes: 11 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@
import os
import re
import ssl
import sys

import aiomysql
import pymysql
import pytest
import uvloop


# version gate can be removed once uvloop supports python 3.11
# https://github.com/MagicStack/uvloop/issues/450
# https://github.com/MagicStack/uvloop/pull/459
PY_311 = sys.version_info >= (3, 11)
if PY_311:
uvloop = None
else:
import uvloop


@pytest.fixture
Expand Down

0 comments on commit 3468792

Please sign in to comment.