Skip to content

Commit 88c35d5

Browse files
committed
fix typing
1 parent 53d31e5 commit 88c35d5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/unit/crawlers/_basic/test_basic_crawler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,9 +2052,6 @@ async def error_handler(context: BasicCrawlingContext, error: Exception) -> Requ
20522052
async def test_multiple_crawlers_with_global_event_manager() -> None:
20532053
"""Test that multiple crawlers work correctly when using the global event manager."""
20542054

2055-
# Test is skipped in older Python versions.
2056-
from asyncio import Barrier # type:ignore[attr-defined] # noqa: PLC0415
2057-
20582055
rq1 = await RequestQueue.open(alias='rq1')
20592056
rq2 = await RequestQueue.open(alias='rq2')
20602057

@@ -2073,7 +2070,7 @@ async def launch_crawler_2() -> None:
20732070
await started_event.wait()
20742071
await crawler_2.run(['https://b.placeholder.com'])
20752072

2076-
handler_barrier = Barrier(2)
2073+
handler_barrier = asyncio.Barrier(2) # ty:ignore[unresolved-attribute] # Test is skipped in older Python versions.
20772074

20782075
handler_call = AsyncMock()
20792076

0 commit comments

Comments
 (0)