Skip to content

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

Update flake8.

Andrey Rakhmatullin5bf42606792c
diff --git a/tests/test_http_response.py b/tests/test_http_response.py
index 5d67a5e74..b42c95045 100644
--- a/tests/test_http_response.py
+++ b/tests/test_http_response.py
@@ -705,7 +705,8 @@ class HtmlResponseTest(TextResponseTest):
def test_html_encoding(self):
- body = b"""<html><head><title>Some page</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ body = b"""<html><head><title>Some page</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head><body>Price: \xa3100</body></html>'
"""
r1 = self.response_class("http://www.example.com", body=body)
@@ -719,7 +720,8 @@ class HtmlResponseTest(TextResponseTest):
self._assert_response_values(r2, 'iso-8859-1', body)
# for conflicting declarations headers must take precedence
- body = b"""<html><head><title>Some page</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ body = b"""<html><head><title>Some page</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body>Price: \xa3100</body></html>'
"""
r3 = self.response_class("http://www.example.com", body=body,
diff --git a/tox.ini b/tox.ini
index 822e96fde..eee99cb2d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -58,8 +58,7 @@ deps =
{[testenv]deps}
# Twisted[http2] is required to import some files
Twisted[http2]>=17.9.0
- # newer ones don't work: https://github.com/tholo/pytest-flake8/issues/87
- flake8==4.0.1
+ flake8==5.0.4
commands =
flake8 {posargs:docs scrapy tests}