Update flake8.

This commit is contained in:
Andrey Rakhmatullin 2022-10-10 11:14:20 +06:00
parent eeb199adda
commit 5bf4260679
2 changed files with 5 additions and 4 deletions

View File

@ -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,

View File

@ -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}