Skip to content

Commit e1f51b9

Browse files
committed
WIP
1 parent b4e716e commit e1f51b9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test_connector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ async def test_cleanup(key: Any) -> None:
11441144
existing_handle = conn._cleanup_handle = mock.Mock()
11451145

11461146
conn._cleanup()
1147+
await asyncio.sleep(0.1) # Mitigate race condition on slow systems
11471148
assert existing_handle.cancel.called
11481149
assert conn._conns == {}
11491150
assert conn._cleanup_handle is None

tests/test_loop.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
from aiohttp import web
99
from aiohttp.test_utils import AioHTTPTestCase, loop_context
10-
from tests._pytest_plugin import SUPPORTS_XDIST # type: ignore[import]
10+
# from tests._pytest_plugin import SUPPORTS_XDIST # type: ignore[import]
1111

1212

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

0 commit comments

Comments
 (0)