Skip to content

Commit

Permalink
[3.9] Fix CI (#7143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamsorcerer authored Dec 26, 2022
1 parent 592c1bb commit c919bfa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
- name: Run linters
run: |
make mypy
- name: Install libenchant-dev
- name: Install libenchant
run: |
sudo apt install libenchant-dev
sudo apt install libenchant-2-dev
- name: Install spell checker
run: |
pip install -r requirements/doc-spelling.txt -c requirements/constraints.txt
Expand Down
1 change: 1 addition & 0 deletions aiohttp/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
PY_37 = sys.version_info >= (3, 7)
PY_38 = sys.version_info >= (3, 8)
PY_310 = sys.version_info >= (3, 10)
PY_311 = sys.version_info >= (3, 11)

if sys.version_info < (3, 7):
import idna_ssl
Expand Down
2 changes: 1 addition & 1 deletion docs/web_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,7 @@ Utilities

.. versionadded:: 3.9

Support handler_cancellation parameter (this was the default behaviour
Support handler_cancellation parameter (this was the default behavior
in aiohttp <3.7).

Constants
Expand Down
4 changes: 2 additions & 2 deletions tests/test_client_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_gen_default_accept_encoding,
_merge_ssl_params,
)
from aiohttp.helpers import PY_310
from aiohttp.helpers import PY_311
from aiohttp.test_utils import make_mocked_coro


Expand Down Expand Up @@ -277,7 +277,7 @@ def test_host_header_ipv6_with_port(make_request) -> None:


@pytest.mark.xfail(
PY_310,
PY_311,
reason="No idea why ClientRequest() is constructed out of loop but "
"it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from re_assert import Matches

from aiohttp import streams
from aiohttp.helpers import PY_310
from aiohttp.helpers import PY_311

DATA = b"line1\nline2\nline3\n"

Expand Down Expand Up @@ -84,7 +84,7 @@ async def test_create_waiter(self) -> None:
await stream._wait("test")

@pytest.mark.xfail(
PY_310,
PY_311,
reason="No idea why ClientRequest() is constructed out of loop but "
"it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_web_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from aiohttp import log, web
from aiohttp.abc import AbstractAccessLogger, AbstractRouter
from aiohttp.helpers import DEBUG, PY_36, PY_310
from aiohttp.helpers import DEBUG, PY_36, PY_311
from aiohttp.test_utils import make_mocked_coro
from aiohttp.typedefs import Handler

Expand Down Expand Up @@ -41,7 +41,7 @@ async def test_set_loop() -> None:


@pytest.mark.xfail(
PY_310,
PY_311,
reason="No idea why _set_loop() is constructed out of loop "
"but it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
Expand Down

0 comments on commit c919bfa

Please sign in to comment.