Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Minor fixes in LoadTestCase in test_downloader_handlers

Julia Medina2177d4feec9d
diff --git a/scrapy/tests/test_downloader_handlers.py b/scrapy/tests/test_downloader_handlers.py
index cf7b1df78..a4e54ed76 100644
--- a/scrapy/tests/test_downloader_handlers.py
+++ b/scrapy/tests/test_downloader_handlers.py
@@ -33,7 +33,7 @@ from scrapy.exceptions import NotConfigured
class DummyDH(object):
- def __init__(self, settings):
+ def __init__(self, crawler):
pass
@@ -61,6 +61,7 @@ class LoadTestCase(unittest.TestCase):
handlers = {'scheme': None}
dh = DownloadHandlers(get_crawler({'DOWNLOAD_HANDLERS': handlers}))
self.assertNotIn('scheme', dh._handlers)
+ self.assertNotIn('scheme', dh._notconfigured)
class FileTestCase(unittest.TestCase):