File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1144,6 +1144,7 @@ async def test_cleanup(key: Any) -> None:
1144
1144
existing_handle = conn ._cleanup_handle = mock .Mock ()
1145
1145
1146
1146
conn ._cleanup ()
1147
+ await asyncio .sleep (0.1 ) # Mitigate race condition on slow systems
1147
1148
assert existing_handle .cancel .called
1148
1149
assert conn ._conns == {}
1149
1150
assert conn ._cleanup_handle is None
Original file line number Diff line number Diff line change 7
7
8
8
from aiohttp import web
9
9
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]
11
11
12
12
13
13
@pytest .mark .skipif (
14
14
platform .system () == "Windows" , reason = "the test is not valid for Windows"
15
15
)
16
16
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
18
18
proc = await asyncio .create_subprocess_shell (
19
19
"exit 0" ,
20
20
stdin = asyncio .subprocess .DEVNULL ,
You can’t perform that action at this time.
0 commit comments