diff --git a/setup.cfg b/setup.cfg index b17933b94..820ac8eea 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,6 @@ norecursedirs = .* env* _build *.egg universal = 1 [flake8] -ignore = E126,E241,E272 +ignore = E126,E241,E272,E402,E731,W503 exclude=.tox,examples,docs max-line-length=100 diff --git a/tests/test_http.py b/tests/test_http.py index bcff6c4a9..764f59304 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -247,7 +247,8 @@ def test_parse_options_header(self): assert http.parse_options_header('something; foo="otherthing"; meh=; bleh') == \ ('something', {'foo': 'otherthing', 'meh': None, 'bleh': None}) # Issue #404 - assert http.parse_options_header('multipart/form-data; name="foo bar"; filename="bar foo"') == \ + assert http.parse_options_header('multipart/form-data; name="foo bar"; ' + 'filename="bar foo"') == \ ('multipart/form-data', {'name': 'foo bar', 'filename': 'bar foo'}) # Examples from RFC assert http.parse_options_header('audio/*; q=0.2, audio/basic') == \ @@ -260,7 +261,9 @@ def test_parse_options_header(self): multiple=True) == \ ('text/plain', {'q': '0.5'}, "text/html", {}, "text/x-dvi", {'q': '0.8'}, "text/x-c", {}) - assert http.parse_options_header('text/plain; q=0.5, text/html\n text/x-dvi; q=0.8, text/x-c') == \ + assert http.parse_options_header('text/plain; q=0.5, text/html\n' + ' ' + 'text/x-dvi; q=0.8, text/x-c') == \ ('text/plain', {'q': '0.5'}) def test_dump_options_header(self):