Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 30, 2023
1 parent b4e716e commit e1f51b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,7 @@ async def test_cleanup(key: Any) -> None:
existing_handle = conn._cleanup_handle = mock.Mock()

conn._cleanup()
await asyncio.sleep(0.1) # Mitigate race condition on slow systems
assert existing_handle.cancel.called
assert conn._conns == {}
assert conn._cleanup_handle is None
Expand Down
4 changes: 2 additions & 2 deletions tests/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

from aiohttp import web
from aiohttp.test_utils import AioHTTPTestCase, loop_context
from tests._pytest_plugin import SUPPORTS_XDIST # type: ignore[import]
# from tests._pytest_plugin import SUPPORTS_XDIST # type: ignore[import]


@pytest.mark.skipif(
platform.system() == "Windows", reason="the test is not valid for Windows"
)
async def test_subprocess_co(loop: Any) -> None:
assert PY_38 or threading.current_thread() is threading.main_thread() or SUPPORTS_XDIST
assert PY_38 or threading.current_thread() is threading.main_thread() # or SUPPORTS_XDIST
proc = await asyncio.create_subprocess_shell(
"exit 0",
stdin=asyncio.subprocess.DEVNULL,
Expand Down

0 comments on commit e1f51b9

Please sign in to comment.