From 43a794355ab76751c1dfc55040ce61e2f6432290 Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Sat, 20 Jun 2026 17:35:20 +0500 Subject: [PATCH] Add a comment about CustomStatsCollector. --- tests/test_stats.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_stats.py b/tests/test_stats.py index 33ab75c97..05f609fda 100644 --- a/tests/test_stats.py +++ b/tests/test_stats.py @@ -131,6 +131,7 @@ class TestStatsCollector: @coroutine_test async def test_deprecated_spider_arg_custom_collector(self) -> None: + # the class reimplements many methods because those are called during the test crawl class CustomStatsCollector: def __init__(self, crawler): self._stats = {}