Ignore warnings from third-parties during tests

This commit is contained in:
Adrián Chaves 2024-07-09 14:17:02 +02:00
parent 36cf156500
commit f914cd50fb
2 changed files with 3 additions and 0 deletions

View File

@ -26,3 +26,5 @@ filterwarnings =
ignore:Module scrapy.utils.reqser is deprecated
ignore:typing.re is deprecated
ignore:typing.io is deprecated
ignore:::h2
ignore:::w3lib

View File

@ -350,6 +350,7 @@ class Downloader:
self._slot_gc_loop.stop()
for slot in self.slots.values():
slot.close()
self._record_backout(None)
def _slot_gc(self, age: float = 60) -> None:
mintime = time() - age