Scrapy, a fast high-level web crawling & scraping framework for Python.
Do not propagate cookie log messages in tests so TopLevelFormatter does not rewrite them
Daniel Grañaf4fc05c2a1a6
diff --git a/tests/test_downloadermiddleware_cookies.py b/tests/test_downloadermiddleware_cookies.pyindex 66d9faa79..26d9794b6 100644--- a/tests/test_downloadermiddleware_cookies.py+++ b/tests/test_downloadermiddleware_cookies.py@@ -63,6 +63,7 @@ class CookiesMiddlewareTest(TestCase):crawler = get_crawler(settings_dict={'COOKIES_DEBUG': True})mw = CookiesMiddleware.from_crawler(crawler)with LogCapture('scrapy.downloadermiddlewares.cookies',+ propagate=False,level=logging.DEBUG) as l:req = Request('http://scrapytest.org/')res = Response('http://scrapytest.org/',@@ -86,6 +87,7 @@ class CookiesMiddlewareTest(TestCase):crawler = get_crawler(settings_dict={'COOKIES_DEBUG': False})mw = CookiesMiddleware.from_crawler(crawler)with LogCapture('scrapy.downloadermiddlewares.cookies',+ propagate=False,level=logging.DEBUG) as l:req = Request('http://scrapytest.org/')res = Response('http://scrapytest.org/',