Permalink
Browse files

Fix flake8 error: E501 line too long

  • Loading branch information...
1 parent 769f192 commit b6e15ab4624947bea8cbc03cc40cf26016408ae5 @webknjaz webknjaz committed Aug 24, 2016
Showing with 9 additions and 1 deletion.
  1. +4 −0 .flake8
  2. +5 −1 cherrypy/test/test_http.py
View
@@ -0,0 +1,4 @@
+[flake8]
+# 79 chars is too strict and we don't have 80-char terminals nowadays,
+# 160 chars is too much since it doesn't let us use split view efficiently:
+max-line-length = 120
@@ -196,7 +196,11 @@ def test_malformed_request_line(self):
c.close()
def test_request_line_split_issue_1220(self):
- Request_URI = "/index?intervenant-entreprise-evenement_classaction=evenement-mailremerciements&_path=intervenant-entreprise-evenement&intervenant-entreprise-evenement_action-id=19404&intervenant-entreprise-evenement_id=19404&intervenant-entreprise_id=28092"
+ Request_URI = (
+ '/index?intervenant-entreprise-evenement_classaction=evenement-mailremerciements'
+ '&_path=intervenant-entreprise-evenement&intervenant-entreprise-evenement_action-id=19404'
+ '&intervenant-entreprise-evenement_id=19404&intervenant-entreprise_id=28092'
+ )
self.assertEqual(len("GET %s HTTP/1.1\r\n" % Request_URI), 256)
self.getPage(Request_URI)
self.assertBody("Hello world!")

0 comments on commit b6e15ab

Please sign in to comment.