Skip to content

Commit

Permalink
Make the 3.10 related xfails non-strict
Browse files Browse the repository at this point in the history
We see xpasses in Fedora with Python 3.11.1:

    =================================== FAILURES ===================================
    __________________________ test_default_loop[pyloop] ___________________________
    [XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
    ____________________ TestStreamReader.test_ctor_global_loop ____________________
    [XPASS(strict)] No idea why ClientRequest() is constructed out of loop but it calls `asyncio.get_event_loop()`
    __________________________ test_set_loop_default_loop __________________________
    [XPASS(strict)] No idea why _set_loop() is constructed out of loop but it calls `asyncio.get_event_loop()`
  • Loading branch information
hroncok committed Jan 20, 2023
1 parent ed04b4d commit 273e793
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_client_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def test_host_header_ipv6_with_port(make_request) -> None:
reason="No idea why ClientRequest() is constructed out of loop but "
"it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
strict=False,
)
def test_default_loop(loop) -> None:
asyncio.set_event_loop(loop)
Expand Down
1 change: 1 addition & 0 deletions tests/test_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ async def test_create_waiter(self) -> None:
reason="No idea why ClientRequest() is constructed out of loop but "
"it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
strict=False,
)
def test_ctor_global_loop(self) -> None:
loop = asyncio.new_event_loop()
Expand Down
1 change: 1 addition & 0 deletions tests/test_web_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def test_set_loop() -> None:
reason="No idea why _set_loop() is constructed out of loop "
"but it calls `asyncio.get_event_loop()`",
raises=DeprecationWarning,
strict=False,
)
def test_set_loop_default_loop() -> None:
loop = asyncio.new_event_loop()
Expand Down

0 comments on commit 273e793

Please sign in to comment.