mirror of https://github.com/scrapy/scrapy.git
Remove unused variable
This commit is contained in:
parent
a3e53027ec
commit
ee98771fa7
|
|
@ -334,7 +334,7 @@ class HttpCompressionSubclassTest(TestCase):
|
|||
|
||||
crawler = get_crawler(Spider)
|
||||
with catch_warnings(record=True) as caught_warnings:
|
||||
instance = HttpCompressionMiddlewareSubclass.from_crawler(crawler)
|
||||
HttpCompressionMiddlewareSubclass.from_crawler(crawler)
|
||||
messages = tuple(
|
||||
str(warning.message) for warning in caught_warnings
|
||||
if warning.category is ScrapyDeprecationWarning
|
||||
|
|
|
|||
Loading…
Reference in New Issue